@echo off
echo "Compiling and linking C++ source code,"
echo "and preparing the executable for debugging..."
"C:\MinGW\bin\g++.exe" -Wall -g -o executable SourceCode.cpp
echo "Done"
PS: I can't believe it! No more jumping between operating systems! Now I'm just missing a debugger! I hate Emacs!
PSS: Before I totally forget. By installing MinGW in windows I had to add a new path for the environment variables. (In Windows 7 I can find that by clicking on Start > Right clicking on Computer > Properties > Advanced System Setting > Environment Variables. Then, once I found the "Path" variable, I had only to add a semi-colon at the end of the line ";" and add the desire path, which in this case was "C:\MinGW\bin". I did this because I had an error with libgmp-10.dll. The g++ from the MinGW directory could not find it when I tried to compile my source code. And now that I recall... setting that environment variable that allows me to run g++ directly through the command prompt window, without having to specify its directory. I should update this *.bat file once more.
No comments:
Post a Comment