User forums > Help
Old Problem but no solutions
labdabeta:
I am having a major problem with code::blocks that is fairly well posted on these forums but I have tried all of the solutions and none of them worked. When I press Build and Run I repeatedly get the popup saying "It seems this project has not been built yet. Do you want to build it now?" (if I press Yes is pops up again) when I just hit build I get this message in the build log "-------------- Build: Debug in TESTINGOPENGL ---------------
mingw32-g++.exe -Wall -g -I"C:\Program Files\CodeBlocks\MinGW\include" -c D:\Programming\C++\TESTINGOPENGL\main.cpp -o obj\Debug\main.o
Execution of 'mingw32-g++.exe -Wall -g -I"C:\Program Files\CodeBlocks\MinGW\include" -c D:\Programming\C++\TESTINGOPENGL\main.cpp -o obj\Debug\main.o' in 'D:\Programming\C++\TESTINGOPENGL' failed.
Nothing to be done."
As I said I have done everything I can think of. Why won't any of my projects build?
MortenMacFly:
--- Quote from: labdabeta on June 09, 2011, 07:03:52 pm ---Execution of 'mingw32-g++.exe -Wall -g -I"C:\Program Files\CodeBlocks\MinGW\include" -c D:\Programming\C++\TESTINGOPENGL\main.cpp -o obj\Debug\main.o' in 'D:\Programming\C++\TESTINGOPENGL' failed.
Nothing to be done."
--- End quote ---
What happens if you open a command shell, go into the directory "D:\Programming\C++\TESTINGOPENGL" and then enter (exactly like that):
"C:\Program Files\CodeBlocks\MinGW\bin\mingw32-g++.exe" -Wall -g -I"C:\Program Files\CodeBlocks\MinGW\include" -c D:\Programming\C++\TESTINGOPENGL\main.cpp -o obj\Debug\main.o
???
stahta01:
Before Morten command you might need to set the path to find MinGW GCC by doing the following in the command shell.
Tim S.
--- Code: ---SET PATH=C:\Program Files\CodeBlocks\MinGW\bin;%PATH%
--- End code ---
How to go to "D:\Programming\C++\TESTINGOPENGL"
--- Code: ---cd /D D:\Programming\C++\TESTINGOPENGL
--- End code ---
labdabeta:
That was a step in the right direction, it gave me a few syntax errors... but I would like to be able to run this from C::B. Do I have to make some kind of batch file?
maybe:
@echo off
cd /d %1
@echo on
"C:\Program Files\CodeBlocks\MinGW\bin\mingw32-g++.exe" -Wall -g -I"C:\Program Files\CodeBlocks\MinGW\include" -c %2 -o obj\Debug\main.o
???
MortenMacFly:
--- Quote from: labdabeta on June 09, 2011, 08:31:09 pm ---That was a step in the right direction, it gave me a few syntax errors... but I would like to be able to run this from C::B. Do I have to make some kind of batch file?
--- End quote ---
No. That means that either:
- the compiler your are using in your project/target directory is not setup correctly
...or:
- you do not point to C:\Program Files\CodeBlocks\MinGW for the tool chain executables (e.g. you point to C:\Program Files\CodeBlocks\MinGW\bin, which is wrong).
Navigation
[0] Message Index
[#] Next page
Go to full version