Question:
help compiling .cpp files?
MORSHU
2010-05-28 11:06:50 UTC
I need a compiling program that can turn them into .exe files. I can't download visual studio or netbeans because I have dial-up and the large file sizes would tie up the phone line for 10-14 hours. I'm currently using a program called notepad++ that can save .cpp but not .exe.
Four answers:
?
2010-05-28 11:13:01 UTC
Notepad ++ is just an editor and you need a c++ compiler. These are two very different things. If you have editor, compiler and debugger integrated you get what you call a full IDE.



Anyway do a google (or yahoo or bing or whatever) search for dev++ , I think it's free (but check license terms anyway) and it's moderate in size < 9 megs.
?
2010-05-28 18:15:40 UTC
You're probably going to have to bite the bullet and download one of those (have you tried going to your local library and using their connection? It's much faster than dial-up). C++ compilers require all the libraries and the entire compiler is going to be fairly large. I suggest using an internet cafe or public hotspot to download it.
Bobby
2010-05-28 18:17:15 UTC
get dev-c++, set the path in your environment variables(system-->advanced,environment variables) to your dev-c++ installation folder directory bin, but add ';' at the start, for example :

;C:\Dev-Cpp\bin

open command prompt, go to the folder with your source code and type g++ [your .exe file name] [your source code], for example :

g++ main main.cpp try.cpp

it will compile your source code (main.cpp and try.cpp) to main.exe
jplatt39
2010-05-28 20:26:26 UTC
MinGW.



https://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780



It's gcc for windows, with NO ide. You can step through your program with gdb. Here is more information about it:



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



Also look at



http://www.cygwin.com



and



http://www.digitalmars.com



All are small excellent compilers.


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