473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

map<string,set<strin> > compilation problem

Hi all,

In a class of mine I tried to use the following member:

std::map<std::string, std::set<std::string> > m_files;

but I recieved the following error message:

mips-tfile, /tmp/cceNEN7W.s:286 String too big (5071 bytes)
line: #.stabs "lower_bound::1317:_ZNSt8_Rb_treeISsSt4
pairIKSsSt3setISsSt4lessISsESaISsEEESt10_Select1st IS7_ES4_SaIS7
_EE11lower_boundERS1_;2A.1318:_ZNKSt8_Rb_treeISsSt 4pairIKSsSt3s
etISsSt4lessISsESaISsEEESt10_Select1stIS7_ES4_SaIS 7_EE11lower_b
oundERS1_;2B.;upper_bound::1317:_ZNSt8_Rb_treeISsS t4pairIKSsSt3
setISsSt4lessISsESaISsEEESt10_Select1stIS7_ES4_SaI S7_EE11upper_
boundERS1_;2A.1318

and the message continues in this criptographic pattern for more 30 or 40 lines.

I am using gcc 3.0.2 on a Tru64 machine.

Did I do something wrong? Is this expected? Is there a workaround?

Thanks.

Marcelo Pinto
Jul 22 '05 #1
4 2348
"Marcelo Pinto" <mp****@brturbo.com> wrote...
In a class of mine I tried to use the following member:

std::map<std::string, std::set<std::string> > m_files;

but I recieved the following error message:

mips-tfile, /tmp/cceNEN7W.s:286 String too big (5071 bytes)
line: #.stabs "lower_bound::1317:_ZNSt8_Rb_treeISsSt4
pairIKSsSt3setISsSt4lessISsESaISsEEESt10_Select1st IS7_ES4_SaIS7
_EE11lower_boundERS1_;2A.1318:_ZNKSt8_Rb_treeISsSt 4pairIKSsSt3s
etISsSt4lessISsESaISsEEESt10_Select1stIS7_ES4_SaIS 7_EE11lower_b
oundERS1_;2B.;upper_bound::1317:_ZNSt8_Rb_treeISsS t4pairIKSsSt3
setISsSt4lessISsESaISsEEESt10_Select1stIS7_ES4_SaI S7_EE11upper_
boundERS1_;2A.1318

and the message continues in this criptographic pattern for more 30 or 40 lines.
I am using gcc 3.0.2 on a Tru64 machine.

Did I do something wrong? Is this expected? Is there a workaround?


Try the usual typedef workaround:

typedef std::string str;
typedef std::set<str> strset;
typedef std::map<str, strset> strsetmap;

and then

strsetmap m_files;

HTH

Victor
Jul 22 '05 #2
"Victor Bazarov" <v.********@comAcast.net> wrote in message news:<6BiLc.128796$a24.30465@attbi_s03>...

Try the usual typedef workaround:

typedef std::string str;
typedef std::set<str> strset;
typedef std::map<str, strset> strsetmap;

and then

strsetmap m_files;

HTH

Victor


I tryed your sugestion and it didn't work.
[OT]
Then I realized that if I didn't use the -g option the source get
compiled just fine.

Are you aware of the reason why this is so?

[/OT]

Thanks,

Marcelo Pinto
Jul 22 '05 #3
Marcelo Pinto wrote:
"Victor Bazarov" <v.********@comAcast.net> wrote in message news:<6BiLc.128796$a24.30465@attbi_s03>...
Try the usual typedef workaround:

typedef std::string str;
typedef std::set<str> strset;
typedef std::map<str, strset> strsetmap;

and then

strsetmap m_files;

HTH

Victor

I tryed your sugestion and it didn't work.
[OT]
Then I realized that if I didn't use the -g option the source get
compiled just fine.

Are you aware of the reason why this is so?


No, nor is it topical to comp.lang.c++. Try a newsgroup for your
compiler. Compiler options, name mangling, format of object files,
and so on, are not language-defined.

If there is no newsgroup that deals with your compiler, try the one
that deals with your OS. If none exists, try the technical support
for your compiler or/and OS.

V
Jul 22 '05 #4
Marcelo Pinto wrote:
mips-tfile, /tmp/cceNEN7W.s:286 String too big (5071 bytes)
line: #.stabs "lower_bound::1317:_ZNSt8_Rb_treeISsSt4
pairIKSsSt3setISsSt4lessISsESaISsEEESt10_Select1st IS7_ES4_SaIS7
_EE11lower_boundERS1_;2A.1318:_ZNKSt8_Rb_treeISsSt 4pairIKSsSt3s
etISsSt4lessISsESaISsEEESt10_Select1stIS7_ES4_SaIS 7_EE11lower_b
oundERS1_;2B.;upper_bound::1317:_ZNSt8_Rb_treeISsS t4pairIKSsSt3
setISsSt4lessISsESaISsEEESt10_Select1stIS7_ES4_SaI S7_EE11upper_
boundERS1_;2A.1318

I am using gcc 3.0.2 on a Tru64 machine.


This gcc bug was corrected in may 2003, you should upgrade your
compiler.
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: champagne | last post by:
Hello guys, I am not very familiar with the compilation of C. Now I met a problem while I tried to compile a file downloaded from web. The error message is Myfile.h:41:28: sys/fcntlcom.h: No...
2
by: Connell Gauld | last post by:
Hi, I am having problems compiling a small project in VC++ 6. I have included the error below and the full project (including workspace) can be downloaded here:...
11
by: Alex Vinokur | last post by:
Hi, The code below has no problem with GNU g++ 3.3, but it has a problem with GNU g++ 3.4. What is reason for that? --------- foo.cpp : BEGIN --------- template <typename T> struct Boo
0
by: Adriano Coser | last post by:
Hello. I'm trying to compile a DLL with Visual C++ .NET 2003 and I'm facing an error declaring template variables with prototypes. I donīt know if I'll be able to explain my scenario, but...
4
by: Marcelo | last post by:
Hi everybody, This is my first time with the template class and I have an strange problem. I have spent all the afternoon trying to understand it, but I don't get the problem... I have three...
3
by: marylipscomb | last post by:
I have a question about my asp.net application. It tells me that Name 'lblMessage' is not declared. Description: An error occurred during the compilation of a resource required to service this...
2
by: f0zzyNUE | last post by:
hi everyone, currently we are testing the performance our application (asp.net based CMS) ... for that reason we wrote a "spider" that starts webrequests for all relevant pages which results in...
1
by: Agathamk | last post by:
HI IM a new beginner for working with java /xml and i have a project in which I need to use the dom4j tool to read my xml file. But for some reason i keep getting a compilation error whenever i put...
1
by: Alex Vinokur | last post by:
Hi, I have compilation problem on SUN CC compiler with template while using option -m64 (64-bit addressing model). No problem while using option -m32 (32-bit addressing model) $ CC -V CC:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.