Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: More compiler problems



On Sun, 1 Nov 1998, Michael Casinghino wrote:

> I have recently installed egcs-1.1b and now this
> 
> #include <string>
> 
> int main() 
> {
> 	string name = "Your name here";
> }
> 
> gives the linker errors:
> 
> /tmp/cca125301.o: In function `grab__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03Rep':
> /tmp/cca125301.o(.gnu.linkonce.t.grab__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03Rep+0xf): undefined reference to `clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03Rep'
> /tmp/cca125301.o: In function `release__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03Rep':
> /tmp/cca125301.o(.gnu.linkonce.t.release__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03Rep+0x13): undefined reference to `__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepPv'
> collect2: ld returned 1 exit status
> 
> Before I re-install egcs, any suggestions on troubleshooting?  
> 
> I recently bought Bjarne Stroustrup's "The C++ Programming Language"
> and was very excited to sit down and use all these new standard
> library classes.  Is there a freeware library that has most or all of
> these new features (str, valarray, etc)?  Egcs is in dire need of all
> the king's horses and all the king's men.

Did you rebuild libstdc++ with egcs?  Use the libstdc++ that comes with
egcs, and for God's sake, get the hell RID of libg++ from your old gcc
compiler :)

--------------------------------------------------
Scott M. Stone <sstone@example.com, sstone@example.com>
Head of TurboLinux Development/Systems Administrator
Pacific HiTech, Inc (USA) / Pacific HiTech, KK (Japan)


----------------------------------------------------------------
Next Nomikai: 20 November, 19:30   Tengu TokyoEkiMae 03-3275-3691
Next Technical Meeting: 12 December, 12:30 HSBC Securities Office
----------------------------------------------------------------
more info: http://tlug.linux.or.jp Sponsors: PHT, HSBC Securities


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links