This is the mail archive of the gcc-help@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]

Re: Fwd: Linking errors



What's the full name of the library you're linking
against?  On AIX, -l<name> looks for libname.a in your library
search path.  If you don't have a link or a library
named appropriately, the link won't find all of its
symbols.

-Rob


On Fri, 16 Feb 2001, Sorin Costea wrote:

>
> Hello,
>
> I'm getting the following errors when trying to link
> on an AIX 4.1.5 system running gcc 2.95.2
> The external library is using heavily templates, but
> builds fine by itself. Should I include more
> information about it, or is it a known problem that
> fool me is not aware...
> The code works fine on other platforms (HP 10.20,
> Sun 5.6) running gcc 2.8.1. Btw, I also tried with
> -frepo and I'm getting heaps of errors (still the
> library builds ok).
> Thanks a lot,
> Sorin
>
>    g++ -o Server main.o agent.o buildnumber.o
> tcpserver.o unixserver.o unixplatforminfo.o
> sockethelper.o   -lcryptlib -L../Cryptlib
> -L/usr/lib/
>
> ld: 0711-317 ERROR: Undefined symbol:
> __default_alloc_template<false, 0>::end_free
>
> ld: 0711-317 ERROR: Undefined symbol:
> __default_alloc_template<false, 0>::start_free
>
> ld: 0711-317 ERROR: Undefined symbol:
> __default_alloc_template<false, 0>::heap_size
>
> ld: 0711-317 ERROR: Undefined symbol:
> __default_alloc_template<false, 0>::free_list
>
> ld: 0711-345 Use the -bloadmap or -bnoquiet option
> to obtain more information.
> collect2: ld returned 8 exit status
> make: The error code from the last command is 1.
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>

-- 
#include <sig.h>
------------------------------------------------------------------
Robert Nesius             rnesius@ichips.intel.com    503.712.2181
DPG Engineering Computing SW Applications Team



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