This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]