[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

g++ file doesn't run



Thanks for the help - it does compile with g++ instead of gcc, but the executable produced isn't doing anything.  Here's what i'm doing:

//test.c
#include <iostream.h>

main(){
  cout << "Hello there.";
}

The test file doesn't print out anything when I run it.

Also, I was wondering if this was a descrepency in versions of gcc.  The installaition I had before (using the main parts of the Slackware dist.) compiled both c and c++. Like somehow it knew which way to process it.


Reply to: