Using gcc
charles scott
cpscott@nsu.edu
Fri Sep 14 08:39:00 GMT 2001
Hello,
I am new to GNU CC and I have version gcc 3.0.1 running on Solaris 8.
The package seemed to install okay and I added the /usr/local/bin
directory to my path however, when I compile my c++ program it returns
the following message:
`main' must return `int'
Here is the code.
#include <iostream.h>
void main()
{
long number = 0;
cout << "This is a test. " << number << endl;
}
Is there a place where I get some sample c++ code that will compile to
test my install?
Thanks for your assistance.
More information about the Gcc-help
mailing list