View Single Post
  #2  
Old April 4th, 2001, 10:44 AM
ladavacm ladavacm is offline
Unperson Spotter
 
Join Date: Mar 2001
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
ladavacm is on a distinguished road
Compiling C++

gcc ain't MS Visual C++

so the source names should end either with cc or C (even though it may know cpp).

However, to get correct runtime initialization, you have to compile with

c++ testfile.cc

which shoul result with a.out in the current directory. You can start it with

./a.out

Resulting file can be renamed automatically, using

c++ testfile.cc -o whatever

and started with

./whatever
Reply With Quote