Hi all,
This is probably a silly question but how do you get the g++ compiler to
work ? Im not getting any errors Im just not sure how to use the program.
Im going to college in january and would like to get a head start on
things. Im using mandrake 7.0. My prefered environment is enlightenment.
Thank
you, Chronos.
Hi Chronos,
you can either download som source to a program you would like to compile
and weed through the makefile(s) etc ... or just write a simple standard
"hello world" program to test the compiler. For more specific information
check the "man" pages and the GNU site regarding specifics etc...
/* Sample code - Hello World to test g++ */
#include <iostream.h>
int main()
{
cout << "Hello World" << endl;
return 0;
}
if you saved this as test.cpp you would compile it by typing ......
g++ test.cpp -otest
-Lonny