* 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).