Message-ID: <369730ED.7DC7BD9D@gmx.net> Date: Sat, 09 Jan 1999 09:35:25 -0100 From: Robert Hoehne Organization: none provided X-Mailer: Mozilla 4.07 [de] (Win95; I) MIME-Version: 1.0 To: Fogbank CC: DJGPP Mailing list Subject: Re: gxx and rhide References: <3695ff77 DOT 14144009 AT news DOT flashnet DOT it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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 * * Post: Am Berg 3, D-09573 Dittmannsdorf, Germany * * WWW: http://www.tu-chemnitz.de/~sho/rho * ******************************************************