This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A linker problem


sandeep.rm@philips.com writes:

>       We are using gcc for compiling our project using gmake. We are facing a unique problem, whenever we use object files directly we are facing no problem, but when we use archive files instead, we are facing a linker problem with the error "unsatisfied
> symbols". We would be really thankful if you cud solve our problem. Thank You.

This is probably not a gcc problem.  Problems with the linker should
be reported to a binutils list.  See http://sourceware.org/binutils/.

Since you provided no details whatsoever, it is impossible to solve
your problem.  At a guess, you don't realize that the -l option is
order dependent, and needs to come after all the .o files on the link
line.  Read the linker documentation.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]