| View previous topic :: View next topic |
| Author |
Message |
paupav Master Cheater
Reputation: 13
Joined: 15 Apr 2011 Posts: 314 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Sun Jul 14, 2013 6:07 pm Post subject: c++ programming on linux |
|
|
| so what are your thoughts about it? also if anyone can explain to me how can i get some format that I can simply run like .exe on windows lol?
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Sun Jul 14, 2013 11:29 pm Post subject: |
|
|
When you have your .cpp file, just run the following commands in the terminal in the same directory as your .cpp file:
g++ yourCppFile.cpp
./a.out
The first line compiles it into a.out, the second line runs a.out, which is the linux equivalent of an .exe in some regards. I don't know if you can compile straight to a window .exe file, but there are probably tools to do so.
_________________
|
|
| Back to top |
|
 |
paupav Master Cheater
Reputation: 13
Joined: 15 Apr 2011 Posts: 314 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Mon Jul 15, 2013 5:12 am Post subject: |
|
|
| manc wrote: | When you have your .cpp file, just run the following commands in the terminal in the same directory as your .cpp file:
g++ yourCppFile.cpp
./a.out
The first line compiles it into a.out, the second line runs a.out, which is the linux equivalent of an .exe in some regards. I don't know if you can compile straight to a window .exe file, but there are probably tools to do so. |
thank you very much . works
|
|
| Back to top |
|
 |
HitIer How do I cheat?
Reputation: 22
Joined: 09 Feb 2013 Posts: 0 Location: Location Location Location
|
Posted: Sun Jul 21, 2013 8:55 pm Post subject: |
|
|
Executables are like folders in linux, they don't have it in their name.
Like,
"file.exe" would be just "file" when running it from the terminal
_________________
With self driving cars, CE can work in real life
| t328163 wrote: | | Your username derives from the fact that this site cannot format special characters lol. |
| t328163 wrote: |
lmfao, on reddit i'd get banned |
|
|
| Back to top |
|
 |
|