Sorry, this may be a newbie question..
When compiling, for example g++ -c filename.cc....or
g++ -o filename.o filename2.o
what does the "-o" and "-c" do exactly?
is there a help command where i can see all the available options for compiling and get more information?
maybe like "help g++" (I've tried that, didn't work ....)
(gcc) invokes a compiler which turns your source code into an object (o) file...
(gxx) invokes a linker which in turn transforms your object files (o) into an executeable file (exe)
hope that helps...
The defualt executable filename after you compile is a.out, the -o flag lets you choose the executable filename.
To find out about all of the options for gcc try: