@echo off
echo "Compiling and linking C++ source code..."
"C:\Dev-Cpp\bin\g++.exe" -o executable SourceCode.cpp
echo "Done"
Note: It's basically the same stuff as in linux, the only difference is that I need to turn the echo off for the currently running codes. If I don't do this, the line "C:\Dev-Cpp\bin\g++.exe" -o executable SourceCode.cpp will show up in the command prompt window.
PS: It doesn't seem possible to prepare the executable for debugging in Windows. I just read something about MinGW, got to check it out... It's a pain to have to reboot every time I need to make programs.
No comments:
Post a Comment