I'm building a C++ project for an unusual platform, and am having some confusing problems with my libstdc++. For some reason which I cannot fathom, I am getting an absurd number of "undefined reference to..." linker errors for symbols which are indeed undefined in libstdc++.a, but which are definitely defined in libc.a and libgcc.a. Yes, I am
(
Read more... )
Comments 20
pts/3 dogcow@shiny: /tmp 3545 % g++ -v -o foo foo.o
Using built-in specs.
Target: i386--netbsdelf
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=x86_64-unknown-netbsd4.99.72 --host=i386--netbsdelf --target=i386--netbsdelf --enable-__cxa_atexit
Thread model: posix
gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)
ld -dc -dp -e __start -dynamic-linker /usr/libexec/ld.elf_so -o foo /usr/lib/crt0.o /usr/lib/crti.o /usr/lib/crtbegin.o foo.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
I suppose it's possible that gcc is attempting to be clever by noticing that you specified -lstdc++ yourself, and should thus not link anything else....
Reply
Reply
Reply
Leave a comment