This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Core Dump , when running ./a.out
- To: aaboulhosn at entpm2 dot prod dot fedex dot com, gcc-help at gcc dot gnu dot org
- Subject: Re: Core Dump , when running ./a.out
- From: sherry <sherry at zeroknowledge dot com>
- Date: Wed, 28 Feb 2001 10:11:02 -0500
- References: <OFFB864E33.A8E7D007-ON86256A01.004A9F7C@prod.fedex.com>
Hi ,
aaboulhosn@entpm2.prod.fedex.com wrote:
> Hello Folks
>
> I have a problem when I ran my program it cores dump,
> I will appreciate it if you give some help solving this problem.
>
> Here is my program , bb.cc
>
> #include <iostream.h>
> main()
> {
> count << "this is a test\n";
> }
I am not sure if you really want to use iostream.h or iostream?
You probably know the difference, being that iostream is in std name space and
iostream.h is not.
If it does not make a difference to you try thsi one.
#include <iostream>
using namespace std;
main ()
{
cout << "this is a test \n";
}
and then g++ test.cc
what version of g++ you are running?
/usr/local/bin/g++ -v