public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Gcc problems under HP system
@ 2001-10-18 20:12 ÀîºÆÃ÷
  0 siblings, 0 replies; only message in thread
From: ÀîºÆÃ÷ @ 2001-10-18 20:12 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

I compiled this program under HP 11.00 9000/785 system ,with gcc 3.0.There's neither error nor warning during the compile process.But when I ran it,Segmentation fault happened and the program terminated.
 
Here is the program:
#include <stdio.h>
#include <string>
using namespace std;
 
class mapnode     
{
 string srcName,desName;
};
 
int main()
{
 fprintf(stderr,"Before mapnode constructor\n");
 mapnode a[2000];
 fprintf(stderr,"Mapnode constructor accomplished\n");
 return 1;
}
 
And my compile option: g++ main.cpp
------------------------------------------------
21CNÍøÂç²úÆ·³ÏÕ÷´úÀí
http://agent.21cn.com
ÏëÃâÊܹã¸æÐŵÄɧÈÅ£¬ÇëÂíÉÏÉý¼¶Îª21CN¾­¼ÃÓÊÓû§¡£
http://news.21cn.com/cgibin/urlhit2-mcounter.php3?url=http://member.21cn.com/economy/upgrade.php&rd=1
²»¿´ÊÇÄãµÄ´í£¬²»ÔÙ¿´ÊÇÎÒµÄ´í¡£
http://adinfo.21cn.com



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-18 20:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-18 20:12 Gcc problems under HP system ÀîºÆÃ÷

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).