This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: undefined references when i try to link a .cc file which contains classes
- From: bjorn rohde jensen <bjensen at fastmail dot fm>
- To: Eilmsteiner Reinhard <r dot eilmsteiner at paysafecard dot com>
- Cc: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 09 Jan 2003 17:11:38 +0100
- Subject: Re: undefined references when i try to link a .cc file which contains classes
- References: <23FD0445E7F1D4119D910002A50981138D189F@s-vie1-11.psc.com>
- Reply-to: bjensen at fastmail dot fm
Hi Reinhard,
The linker only processes objects/libs once and in the
order given on the commandline. and only objects resolving
unresolved references will be picked up possibly giving
rise to other unresolved references. You should put the
libs to link with at the end of the command line and in
proper order.
Yours sincerely,
Bjorn