From: SESIN <jpgenty@sesinsud.com>
Subject: Problems with map
Date: 2000/04/18 [thread overview]
Message-ID: <l4hofskem1ar68n3mllav8901vi0aanvgb@4ax.com> (raw)
Hi
The following code does not compile
#include <string>
#include <map>
map< string, string> mapTest;
string strTest;
int main()
{
strTest = "123456\n";
mapTest["Key1"] = "Value1";
cout << strTest.c_str() <<endl;
return 0;
}
Result is
as0: Warning: TestMap.cpp, line 6: Line too long
$LFE75:,($26),1nique__t8_Rb_tree5Zt12basic_string3ZcZt18string_char_traits1ZcZt2,blahblah
blah
Command is
g++ -o MyTest MyTest.cpp
Configuration is:
OSF1 V4.0 1229 ( 4.0D I think )
gcc 2.95.2 downloaded on http://www.thewrittenword.com/
/usr/bin/ld
/usr/ccs/bin/as
If I comment out the line mapTest["Key1"] = "Value1"; everything works
fine.
Thanks in advance.
Jean-Paul
reply other threads:[~2000-04-18 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox