473,804 Members | 3,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with long symbol names generated by templates.

Hi,

I'm very new to C++ so bear with me.

typedef list<string> jcllist; // list of strings
typedef map<string, jcllist> proglist; // associative array of lists
static proglist ProgList;

I do that within a normal function (it has to be called from C so
there's no classes or anything - also I'm new to this anyway so it's
easier for me).

Using aCC on hpux11 itanium, I get a warning about a 6Kb+ symbol name
being truncated to about 4Kb. Presumably these templates generate some
very long symbol names.

When I run the program, it gets a core dump somewhere in an allocator.

The same code works OK with visual studio 6.0 on Windows and with gcc on
hpux 11 32 bit pa-risc.

The warnings are making me think I've done something stupid. Is it
normal to do what I did? Should I be doing something different? I
realise I might have to explain more of the algorithim but maybe someone
will be able to see the problem straight away.

Thanks

Peter
--
http://www.beluga.freeserve.co.uk
Jul 23 '05 #1
2 1569
"Peter Smithson" <pg************ **********@yaho o.co.uk> wrote in message
news:MP******** *************** *@News.Individu al.NET...
I'm very new to C++ so bear with me.

typedef list<string> jcllist; // list of strings
typedef map<string, jcllist> proglist; // associative array of lists
static proglist ProgList; This code is ok.
I do that within a normal function (it has to be called from C so
there's no classes or anything - also I'm new to this anyway so it's
easier for me).

Using aCC on hpux11 itanium, I get a warning about a 6Kb+ symbol name
being truncated to about 4Kb. Presumably these templates generate some
very long symbol names. Yes, this is "normal" on some platforms. There are some ways to reduce
the size of the symbols if required (e.g. by making jcllist a class
deriving from list<string> rather than a typedef), but you shouldn't
have to worry about this.
When I run the program, it gets a core dump somewhere in an allocator. I do not expect that the above warning is related to the core dump.
It is most likely a different issue,
The same code works OK with visual studio 6.0 on Windows and with gcc on
hpux 11 32 bit pa-risc.

The warnings are making me think I've done something stupid. Is it
normal to do what I did? Yes. Should I be doing something different? No. I realise I might have to explain more of the algorithim but
maybe someone will be able to see the problem straight away.

Not based on the above information, or not in this newsgroup.
You probably need to provide more details. And because this
might be a platform-specific issue (e.g. related to the use
of C++ in a C library), you may increase your chances of
getting a helpful anser by posting that next question
on a platform-specific forum rather than
in comp.lang.c++ ...
I hope this helps,
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Jul 23 '05 #2
In article <d1**********@n ews.hispeed.ch> ,
NO************* *************** ******@vecerina .com says...
I do not expect that the above warning is related to the core dump.
It is most likely a different issue,

Thanks - you're dead right. I did a bit more investigation by
#ifdef'ing out all the <list> and <map> code and I was left with a
function that just declares a string and adds a constant to it.

It works fine in a small test program (as you'd expect) so it must be
something with the environment or the rest of the project so I'll
continue experimenting.

Glad to know my C++ code was OK.

Thanks.

Peter
--
http://www.beluga.freeserve.co.uk
Jul 23 '05 #3

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

Similar topics

8
8617
by: Jason | last post by:
I have a table that matches up Securities and Exchanges. Individual securities can belong on multiple exchanges. One of the columns, named PrimaryExchangeFlag, indicates if a particular exchange is the primary exchange for that symbol. Each symbol can only have one primary exchange. I am trying to write a insert/update/delete trigger that enforces this rule. The rules I have thought of are as follows: Insert If new row has flag...
8
1421
by: Gerald Aichholzer | last post by:
Hello NG, I try to apply the following template <xsl:template match="objectgroup"> <xsl:copy> <xsl:apply-templates select="*|@*"/> <xsl:variable name="object" select="."/> <xsl:for-each select="//plugins/plugin"> <plugin pid="{./@pid}"
14
2626
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file (that part's not here -- spotlighting the problem code): --------BEGIN CODE PAGE------------ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
8
5484
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
1
2162
by: Vishal Saxena | last post by:
Hi, I am new to this news group, hope to get prompt solution from you, gurus of VC. Well i had a project developed in VC++ 6.0, it uses Adobe Plugin Development SDK, I am trying to upgrade my project to VC++.NET, below is the code snipplet from the project
2
1598
by: duncanblacksmithmath | last post by:
I know a lot of you have seen this before but I have worked on the program and have gotten it to work thus far but I need help getting these two functions to work and implementing them. Here is what I have been trying to work out for these functions but can't get them to fully work out for me. information: A function to access an element of a list by its index called access i(LL, i). It traverses the list LL and returns the address of...
0
5578
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
3
4245
by: Simon Brooke | last post by:
As various people will have noticed, I've been having a lot of trouble with XSL lately. Brief history: I wrote myself an XML toolkit back in 2000, and it worked well enough for me, so it's been little changed since. However, it works only with an obsolete version of Saxon (6.2.2 I think), and it has a number of small bugs; and I've at last got to the point where I need to fix it. And I'm finding it, frankly, absurdly frustrating and...
0
9587
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.