linker input file unused since linking not done
amyyon@my-deja.com
amyyon@my-deja.com
Wed Sep 29 11:45:00 GMT 1999
Hi,
I have created 2 C-files which I want to compile.
Normally I would do:
cc -c file1.c
cc -c file2.c file1.o
This works fine with a Solaris C compiler,
however, it gives me an error message with the
GNU compiler:
linker input file unused since linking not done
I have tried to add the -L option:
cc -c file2.c -Lfile1.o
It it gives me no error message, but when I run
my program (which would link file1 and file2) it
can not find the functions I have defined.
After reading a lot of man-pages I am not able to
get this fixed.
Anyone?
TIA!
Ronald de Witt.
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Gcc-help
mailing list