linker - Linking Objective-C project on Windows -


i have compiled 2 classes (etudiant.m) , (main.m) , obtain successufully 2 .o files (etudiant.o) , (main.o). when linking command :

gcc -c -o prog -wno-import etudiant.o main.o -lobjc 

i got :

gcc.exe : etudiant.o : linker input file unused because linking not done  gcc.exe : main.o : linker input file unused because linking not done 

can me find out how solve linking issues ?? thx in advance.

don't use -c. tells gcc frontend not perform linking. so, instead of

 gcc -c -o prog -wno-import etudiant.o main.o -lobjc 

just

 gcc -o prog -wno-import etudiant.o main.o -lobjc 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -