This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
how to comilate cpp with object file
- To: gcc-help at gcc dot gnu dot org
- Subject: how to comilate cpp with object file
- From: Benoît ALLOMBERT <benoit dot allombert at synomia dot fr>
- Date: Wed, 07 Nov 2001 14:45:54 GMT
Hi,
I dont understand why i could copilate with c and not with c++ file, when
do:
gcc -o myprog test.c myobjfile.o -lm
I could copilate but when i do same in c++ mode it din t work
gcc -o myprog test.cpp myobjfile.o -lm
I got a error undefined reference to `myfunc(char *)'
someone could explaie why it din t work!!!