Mail Archives: djgpp/2001/10/25/01:38:06
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 -