cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/04/08:16:29

From: "Alex Vinokur" <alexvn AT bigfoot DOT com>
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp,gnu.g++.help
Subject: Problem with basic_string
Date: Sat, 4 Jan 2003 15:10:27 +0200
Lines: 100
Message-ID: <av6mgq$cjiq1$1@ID-79865.news.dfncis.de>
NNTP-Posting-Host: pop03-2-ras4-p54.barak.net.il (212.150.99.54)
X-Trace: fu-berlin.de 1041685852 13224769 212.150.99.54 (16 [79865])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have some problem with basic_string.
What is wrong ?

Thanks.


======================
Windows 2000
  --------------------
  MinGW 2.0.0.-2
  GNU g++ version 3.2
  --------------------
  DJGPP 2.03
  GNU gpp version 3.1
======================


========= C++ code : BEGIN =========
// File t1.cpp
#include <string>
using namespace std;

int main ()
{
basic_string<string> bs1;
  bs1 += "ABC";

  return 0;
}
========= C++ code : END ===========



========= [ MinGW ] Compilation : BEGIN =========

% g++ -W -Wall t1.cpp -o m.exe

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccMBaaaa.o(.text$_ZNSbISsSt11char_traitsISsES
aISsEE7replaceEN9__gnu_cxx17__normal_iteratorIPSsS2_EES6_jSs+0xcc):t1.cpp: undef
ined reference to `std::char_traits<std::string>::assign(std::string*, unsigned,
 std::string)'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccMBaaaa.o(.text$_ZNSbISsSt11char_traitsISsES
aISsEE4_Rep8_M_cloneERKS1_j+0xaa):t1.cpp: undefined reference to `std::char_trai
ts<std::string>::copy(std::string*, std::string const*, unsigned)'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccMBaaaa.o(.text$_ZNSbISsSt11char_traitsISsES
aISsEE9_M_mutateEjjj+0x15a):t1.cpp: undefined reference to `std::char_traits<std
::string>::copy(std::string*, std::string const*, unsigned)'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccMBaaaa.o(.text$_ZNSbISsSt11char_traitsISsES
aISsEE9_M_mutateEjjj+0x191):t1.cpp: undefined reference to `std::char_traits<std
::string>::copy(std::string*, std::string const*, unsigned)'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccMBaaaa.o(.text$_ZNSbISsSt11char_traitsISsES
aISsEE9_M_mutateEjjj+0x2ae):t1.cpp: undefined reference to `std::char_traits<std
::string>::move(std::string*, std::string const*, unsigned)'


========= [ MinGW ] Compilation : END ===========



========= [ DJGPP ] Compilation & Run : BEGIN =========

% gpp -W -Wall t1.cpp -o d.exe // No errors

% d.exe

Exiting due to signal SIGSEGV
General Protection Fault at eip=0001a0d4
eax=ffffffff ebx=000426d0 ecx=2e6e6f67 edx=2e6e6f73 esi=00050a18 edi=00042664
ebp=0058fe18 esp=0058fde0 program=C:\__TMP_0\D.EXE
cs: sel=01a7  base=017c0000  limit=0058ffff
ds: sel=01af  base=017c0000  limit=0058ffff
es: sel=01af  base=017c0000  limit=0058ffff
fs: sel=017f  base=000056e0  limit=0000ffff
gs: sel=01bf  base=00000000  limit=0010ffff
ss: sel=01af  base=017c0000  limit=0058ffff
App stack: [00590000..00510000]  Exceptn stack: [000447b0..00042870]

Call frame traceback EIPs:
  0x0001a0d4
  0x00018424
  0x00017ecd
  0x00017b5a
  0x0001794b
  0x0000163b
  0x00004ee8

========= [ DJGPP ] Compilation & Run : END ===========


  ==============================
   Alex Vinokur
     mailto:alexvn AT go DOT to
     http://www.simtel.net/pub/oth/19088.html
   ==============================





- Raw text -


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