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: sherry at zeroknowledge dot com, Help-gcc at gnu dot org
- Subject: Re: Core Dump , when running ./a.out
- From: aaboulhosn at entpm2 dot prod dot fedex dot com
- Date: Wed, 28 Feb 2001 09:28:50 -0600
Thank you for responding .
I tried to compile this, before :
#include <iostream>
using namespace std;
main ()
{
cout << "this is a test \n";
}
It the same problem, because I tried it with both ways before.
I downloaded the patch: gcc-2.9.5.2
because I have a : INTEL Solaris 7
I do not know what version of g++ (But I know the patch is: gcc-2.9.5.2
, because the computer is not here with me now.
Thanks
AREF
---------------------- Forwarded by AREF ABOULHOSN/F47621C/VEND/FEDEX on
02/28/2001 10:20 AM ---------------------------
sherry <sherry@zeroknowledge.com>@zeroknowledge.com on 02/28/2001 10:11:02
AM
Sent by: sherry@zeroknowledge.com
To: aaboulhosn@entpm2.prod.fedex.com, gcc-help@gcc.gnu.org
cc:
Subject: Re: Core Dump , when running ./a.out
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