By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,513 Members | 1,629 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,513 IT Pros & Developers. It's quick & easy.

Its been so long Help?

P: n/a
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!

Nov 5 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 2005-11-05 12:07, Weasel wrote:
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
.html , .js

..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.

--
Erik Wikström
Nov 5 '05 #2

P: n/a
Erik Wikström wrote:
On 2005-11-05 12:07, Weasel wrote:
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.


For C++ programs you are much better off typing

g++ file

john
Nov 5 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.