F
Fugitif
Hi !
I'm trying to compile a project using a generic rule that compiles a .cpp to
a .o . To get the resulting program, I try to do the following:
g++ obj1.o obj2.o obj3.o -o program
But it seems that the dependency between the .o cannot be resolved: I get
"undefined reference" errors.
I've read the FAQs, but all the linker error are linked with "virtual" or
mixing C/C++.
If you have any advice, please tell me. Don't hesitate to give me links to
other project doing similar things.
Thanks.
Julien
I'm trying to compile a project using a generic rule that compiles a .cpp to
a .o . To get the resulting program, I try to do the following:
g++ obj1.o obj2.o obj3.o -o program
But it seems that the dependency between the .o cannot be resolved: I get
"undefined reference" errors.
I've read the FAQs, but all the linker error are linked with "virtual" or
mixing C/C++.
If you have any advice, please tell me. Don't hesitate to give me links to
other project doing similar things.
Thanks.
Julien