Gcc and core dump

S

Sam

Hi all

I am a C++ programmer, and very new in Unix and using gcc. When I am
compiling my program, I am getting error and core dump. I was wondering if
there is any flag or some way in gcc that make it possible too see what the
error is, and where it is located. or some more information about the error.

Thanks in advance Sam
 
K

Kevin Goodsell

Sam said:
Hi all

I am a C++ programmer, and very new in Unix and using gcc. When I am
compiling my program, I am getting error and core dump.

You are dumping core while compiling your program? Then you have a
compiler issue, not a C++ issue.
I was wondering if
there is any flag or some way in gcc that make it possible too see what the
error is, and where it is located. or some more information about the error.

If gcc is crashing, it's obviously because of a bug in the program. Most
programs aren't self-debugging. Your options are basically: 1) upgrade
gcc, 2) check if this is a known issue, and 3) submit a bug report if
it's not a known issue.

-Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top