As many of you may know,
MinGW-w64 does NOT
play well with codeblocks. In fact,
MinGW-w64 has been really weird for me. It's forced me to do a lot of strange things... it won't even recognize any
headers I place inside of the include directory. It won't even recognize
LIBRARIES I put into the libraries directory. I have to put any and all
headers and
libraries that didn't ship with the compiler into the same directory as my
source code...
very annoying, but I have learned to put up with it.
However, I still want to use codeblocks with
MinGW-w64. My current solution has been to load up the cpp and c files in codeblocks, edit them there, and then to manually enter the compile command into the commandline. It works, and it works quite well. However, it is awfully tedious to have to open CMD, change directory to the
mingw-w64 projects folder, and paste the compile command into the command line.
So... can I force the compile button in codeblocks to execute a specific line in the command prompt rather than trying to form one itself?I would like codeblocks to run these 2 commands:
cd C:\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev1\mingw64\Projects_with_CodeBlocks\OpenGL
g++ -o myprogram.exe main.cpp -lmingw32 -lSDL2main -lSDL2 -lglew32s -lopengl32
Obviously, I can put them both in a batch file thus any number of lines of batch is really just one for codeblocks.
I'm sorry if this is in the wrong category, I did not feel like this belonged in help
-------------------------------------------------------
this signature is almost as fake as cnn