P
Philipp Klaus Krause
I just tried to compile some old code that seemed fine some time ago.
When linking I get lots of errors like:
colecovision.o: In function `std::abs(long)':
/usr/include/c++/4.3/cstdlib:144: multiple definition of `std::abs(long)'
z80.o:/usr/include/c++/4.3/cstdlib:144: first defined here
And so on for some other functions from the standard library. I use
g++-4.3. Lines 143 and 144 from cstdlib are:
inline long
abs(long __i) { return labs(__i); }
Philipp
When linking I get lots of errors like:
colecovision.o: In function `std::abs(long)':
/usr/include/c++/4.3/cstdlib:144: multiple definition of `std::abs(long)'
z80.o:/usr/include/c++/4.3/cstdlib:144: first defined here
And so on for some other functions from the standard library. I use
g++-4.3. Lines 143 and 144 from cstdlib are:
inline long
abs(long __i) { return labs(__i); }
Philipp