[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#101223: Undefined reference to 'cout'



Gordon Sadler writes:
 > Note below the order of the -L args. /usr/lib/gcc-lib/i386-linux/2.95.4
 > comes last... Shouldn't it be first? Maybe a change to the specs? It so
 > happens I have gcc-3 and libstdc++-v3 installed in /usr/local, so I can
 > compile this on a few ways:

Ok, then gcc-2.95 picks the libstdc++.so (from gcc-3.0) from /usr/local and
cannot find the symbol because it's mangled in another way?

This situation only occurs, if you have another libstdc++ in the link
path, that is not compatible with the linker used. So the error should
not occur, if you move the libstdc++.so (gcc-3.0's libstdc++) link
into the compiler specific libdir. Correct?

I'd like to downgrade the report, because this is a situation that
does not exist with the Debian g++-2.95 and g++-3.0 packages.



Reply to: