www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/24/03:30:30

X-Authentication-Warning: ieva01.lanet.lv: pavenis owned process doing -bs
Date: Thu, 24 Dec 1998 10:28:03 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Stefano Del Furia <delfo AT tech-center DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: your mail
In-Reply-To: <3.0.2.32.19981223141841.0070b034@tex.lineanet.net>
Message-ID: <Pine.A41.4.05.9812241014240.27394-100000@ieva01.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com


On Wed, 23 Dec 1998, Stefano Del Furia wrote:

> At 10.02 23/12/98 +0200, you wrote:
> >
> >
> >On Tue, 22 Dec 1998, Stefano Del Furia wrote:
> >
> >> Dear Friend,
> >> i have tested egcs port with my programs and i want to congratulate with
> >> you for the good job.
> >> But i have a question.
> >> I don't reach to compile a simple program that use rope.
> >> Example:
> >> 
> >> #include <rope>
> >> 
> >> crope p(10,'x');
> >> main()
> >> {
> >> }
> >> 
> >> when i try to compile this sijple program i obtain a lot of error during
> >> the link phase indicating that there are not some function.
> >> Please help me.
> >> TIA
> >> 
> >
> >There are binutils related problems with templates (they are solved for
> >ELF but not for COFF which is used for DJGPP). You can try to use option
> >-frepo however I'm not sure it will help but it may help (thanks to
> >patches to collect2 from Mark E)
> >
> No, it doesn't works.
> This are the error message without -frepo:
> 
> C:\LAVORI\CPP\stl>gcc -c po.cpp -o po.o
> In file included from c:/djgpp/lang/cxx/stl_rope.h:2107,
>                  from c:/djgpp/lang/cxx/rope.h:18,
>                  from po.cpp:1:
> c:/djgpp/lang/cxx/ropeimpl.h:1085: warning: decimal integer constant is so
> large
>  that it is unsigned
> 
> C:\LAVORI\CPP\stl>gcc po.o -lstdcxx -o po.exe
> po.o(.text+0xa78):po.cpp: undefined reference to `rope<char,
> __default_alloc_tem
> plate<false, 0> >::min_len'
> po.o(.text+0xbff):po.cpp: undefined reference to `rope<char,
> __default_alloc_tem
> plate<false, 0> >::min_len'
> po.o(.text+0x1dd4):po.cpp: undefined reference to `rope<char,
> __default_alloc_te
> mplate<false, 0> >::min_len'
> 
> and that with -frepo
> 
> C:\LAVORI\CPP\stl>gcc -c -frepo po.cpp -o po.o
> In file included from c:/djgpp/lang/cxx/stl_rope.h:2107,
>                  from c:/djgpp/lang/cxx/rope.h:18,
>                  from po.cpp:1:
> c:/djgpp/lang/cxx/ropeimpl.h:1085: warning: decimal integer constant is so
> large
>  that it is unsigned
> 
> C:\LAVORI\CPP\stl>gcc po.o -lstdcxx -o po.exe
> po.o(.text+0xdc):po.cpp: undefined reference to `__rope_RopeBase<char,
> __default
> _alloc_template<false, 0> >::free_tree(void)'
> 
> The numbers of error is decreased, but not eliminated.
> by
> 

Yes it seems so. I tested that example compiles and links Ok
under Linux (ELF format). 

Only one note. It is recommended to send such messages 
also (or only) to djgpp AT delorie DOT com (Changes done to collect2 which
enabled use of -frepo is not from Mark E. and I only put them in 
sources when building egcs)

Andris

- Raw text -


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