* Problems with map
@ 2000-04-18 4:00 SESIN
0 siblings, 0 replies; only message in thread
From: SESIN @ 2000-04-18 4:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-04-18 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-18 4:00 Problems with map SESIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox