delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/09/03:50:40

Message-ID: <369730ED.7DC7BD9D@gmx.net>
Date: Sat, 09 Jan 1999 09:35:25 -0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Organization: none provided
X-Mailer: Mozilla 4.07 [de] (Win95; I)
MIME-Version: 1.0
To: Fogbank <foggy AT flashnet DOT removethis DOT it>
CC: DJGPP Mailing list <djgpp AT delorie DOT com>
Subject: Re: gxx and rhide
References: <Pine DOT SUN DOT 3 DOT 91 DOT 981231100014 DOT 23053K-100000 AT is> <3695ff77 DOT 14144009 AT news DOT flashnet DOT it>
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019