www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/25/01:38:06

Date: Thu, 25 Oct 2001 08:15:11 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: Antti Koskipaa <antti DOT koskipaa AT edu DOT stadia DOT fi>
Cc: djgpp AT delorie DOT com
Subject: Re: Weird behaviour of the C++ compiler.
In-Reply-To: <3BD6FAAA.6080402@edu.stadia.fi>
Message-ID: <Pine.A41.4.05.10110250811590.89650-100000@ieva06>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Wed, 24 Oct 2001, Antti Koskipaa wrote:

> Hi. I was trying C++ with DJGPP the other day. The compiler accepts
> the input file, and passes it to the assembler. The assembler
> chokes on it. I'm not a pro in C++, only C so I can't really
> tell whether the compiler or code has the error.
> 
> Here are some of the ~90 error messages I get:
> 
> c:\source>gcc -c hello.cpp
> Z:\ccSMxCUe.s: Assembler messages:
> Z:\ccSMxCUe.s:2718: Error: Too many new sections; can't add 
> ".gnu.linkonce.t._ZNSsD1Ev"
> Z:\ccSMxCUe.s:2804: Error: Too many new sections; can't add 
> ".gnu.linkonce.t._ZNSsD1Ev"
> Z:\ccSMxCUe.s:2805: Error: Too many new sections; can't add 
> ".gnu.linkonce.t._ZNSsaSERKSs"
> Z:\ccSMxCUe.s:2826: Error: Too many new sections; can't add 
> ".gnu.linkonce.t._ZNKSt8numpunctIcE9falsenameEv"
> Z:\ccSMxCUe.s:2856: Error: Too many new sections; can't add 
> ".gnu.linkonce.t._ZNKSt8numpunctIcE13thousands_sepEv"
> Z:\ccSMxCUe.s:2880: Error: Too many new sections; can't add 
> ".gnu.linkonce.t._ZNKSt8numpunctIcE13decimal_pointEv"
> 
> etc. When compiling with gcc -S hello.cpp, the resulting asm
> file is over 7000 lines long! Now I knew that C++ had something
> to do with "bloat", but this is ridiculous...
> 

I'm guess You're using gcc-3.0 or gcc-3.0.1.

If it is so then You need DJGPP port of binutils-2.11.2. 

Andris


- Raw text -


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