Question:
how to compile c++ code without an IDE?
Excel Elite
2011-09-30 11:45:43 UTC
Can i write text in notepad than save it as .cpp then compile it in cmd like i can do with terminal in ubuntu.
Four answers:
Don't sue me!
2011-09-30 12:02:48 UTC
Yes you can.

All you need to do is download a compiler (GCC is good), and then use it through command line wither with a batch file or directly from CMD.

You can also add the executable directory to your PATH environment variable to access it by only the exe name.



See these pages to learn more:

http://www.mingw.org/wiki/InstallationHOWTOforMinGW

http://forums.tizag.com/showthread.php?t=236
?
2016-11-11 02:53:54 UTC
i do no longer it additionally. The chromebooks may well be an all cloud ecosystem. i do no longer comprehend any compilers that paintings in a cloud. subsequently, i do no longer think of of you are able to collect C++ on the chromebooks.
jplatt39
2011-09-30 12:05:47 UTC
Yes you can. Download MinGW if you haven't:



http://www.mingw.org



Follow their instructions setting it up. Then it's just a case of:



g++ -o .cpp



You can actually do it with Visual C++ but I forget the syntax.
Ryan
2011-09-30 11:46:43 UTC
rewrite it as a .psd then convert it to .jpg


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...