public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* egcs-1215: Compiling with strings
@ 1997-12-17  1:59 Orn E. Hansen
  0 siblings, 0 replies; only message in thread
From: Orn E. Hansen @ 1997-12-17  1:59 UTC (permalink / raw)
  To: egcs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2509 bytes --]

  I applied the patches from 1207-1215 snapshot, and tried to compile
strings again, with the following result:

---- program ----
#include <iostream.h>
#include <string>

main()
{
  string str;

  str = "Halló heimur";
  cout << str.c_str() << endl;
  str += "þarna úti!";
  cout << str.c_str() << endl;
}
---- compilation results ----

[10:51] Ørn:~/sources/cc > g++ str.C -o str
/tmp/cca071021.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::append(char const *, unsigned int)':
/tmp/cca071021.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::gnu.linkonce.t.append(char const *, unsigned int)+0x21): undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::replace(unsigned int, unsigned int, char const *, unsigned int)'
/tmp/cca071021.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::assign(char const *, unsigned int)':
/tmp/cca071021.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::gnu.linkonce.t.assign(char const *, unsigned int)+0x17): undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::replace(unsigned int, unsigned int, char const *, unsigned int)'
/tmp/cca071021.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::basic_string(void)':
/tmp/cca071021.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::gnu.linkonce.t.(void)+0x8): undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::nilRep'
/tmp/cca071021.o: In function `grab__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03Rep':
/tmp/cca071021.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/cca071021.o: In function `release__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03Rep':
/tmp/cca071021.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-12-17  1:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-17  1:59 egcs-1215: Compiling with strings Orn E. Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).