Mail Archives: djgpp/1992/07/01/12:09:43
The problem with Complex and libm.a is that gcc, by default, links libgcc.a
*after* libm.a, not *before*. Try this:
gcc myprog.o -lgcc -lm
In Unix, you're expected to do this, I think:
gcc myprog.o -lg++ -lm
Since the C++ stuff is in libgcc.a, and libgcc.a gets linked in
automatically, nobody thinks of this. Gcc just doesn't expect the
native libraries to understand C++.
Maybe I should move the libm.a routines into libc.a?
DJ
dj AT ctron DOT com
Life is a banana.
- Raw text -