Its been so long Help?

W

Weasel

Hey everyone, its been a while since i was last interested in C++ well
like 3 years now...
and i still cant remember what the command was in the Compiler to
compile the program...

Also when you save the script what do you save the extension as Example
.html , .js

and last question is about A.out, i remember that you needed this to
excute the program, but i cant remember what the script contained to
make the A.out file

Please HELP!
 
?

=?ISO-8859-1?Q?Erik_Wikstr=F6m?=

Hey everyone, its been a while since i was last interested in C++
well like 3 years now... and i still cant remember what the command
was in the Compiler to compile the program...

It very much depends on the compiler in question. Using gcc you would
type something like "gcc file" where file is the file containing your
program.
Also when you save the script what do you save the extension as Example

..cpp is quite common, .C, .c++ and a number of other variants also
works. This is both platform-dependent and compiler-dependent, take a
look in the documentation for your compiler.
and last question is about A.out, i remember that you needed this to
excute the program, but i cant remember what the script contained to
make the A.out file

When using gcc by default the compiled program will be called a.out, but
you can use the "-o"-flag to change it to something else. Again, refer
to the documentation of your compiler.
 
J

John Harrison

Erik said:
It very much depends on the compiler in question. Using gcc you would
type something like "gcc file" where file is the file containing your
program.

For C++ programs you are much better off typing

g++ file

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top