Mail Archives: djgpp/1999/01/09/03:50:40
Fogbank wrote :
>
At first I will tell you the main difference
> Here is the compiler's output for the command "gcc exc.cc -v
> -lstdcxx":
[snip]
> d:/djgpp/bin/as.exe -o d:/djgpp/tmp\cccqrk4g d:/djgpp/tmp\ccbqrk4g
> d:/djgpp/bin/ld.exe d:/djgpp/lib/crt0.o -Ld:/djgpp/lib
[snip]
> This is the compiler's output for "gxx exc.cc -v":
[snip]
> d:/djgpp/bin/as.exe -o d:/djgpp/tmp\cccqjxah d:/djgpp/tmp\ccbqjxah
> d:/djgpp/bin/ld.exe d:/djgpp/lib/gcc-lib/djgpp/2.81/crtf.o
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> d:/djgpp/lib/crt0.o -Ld:/djgpp/lib/gcc-lib/djgpp/2.81 -Ld:/djgpp/bin
[snip]
> As you can see, the linker is called with different options (but,
> according to the faq, this is normal).
I strongly recommend you to upgrade to DJGPP 2.02 or read
carefully and completely the file readme.djg from the
gcc 2.8.1 distrib. It describes some problems. You problem
is, that when using gcc, it searches at first in %DJDIR%/lib
for the specs file and using gxx (from the gcc distrib) it
searches at first in %DJDIR%/lib/gcc-lib/djgpp/2.81 and
both will find a different specs file.
This specs file is responsible for linking in the executable
the needed startup file, which for DJGPP 2.01 is the file
crtf.o and in DJGPP 2.02 this is already built in libc.
Robert
--
******************************************************
* email: Robert Hoehne <robert DOT hoehne AT gmx DOT net> *
* Post: Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW: http://www.tu-chemnitz.de/~sho/rho *
******************************************************
- Raw text -