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?
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."
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???
Before Morten command you might need to set the path to find MinGW GCC by doing the following in the command shell.
Tim S.
SET PATH=C:\Program Files\CodeBlocks\MinGW\bin;%PATH%
How to go to "D:\Programming\C++\TESTINGOPENGL"
cd /D D:\Programming\C++\TESTINGOPENGL
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
???
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?
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).
Quote from: stahta01 on June 09, 2011, 08:12:06 PM
Before Morten command you might need to set the path to find MinGW GCC by doing the following in the command shell.
Tim S.
SET PATH=C:\Program Files\CodeBlocks\MinGW\bin;%PATH%
Sorry, but that is not right, and would spoil what I have in mind. Please don't do that, just do the one command line I said in a plain new command shell.
Thank you! for some reason the toolchain executable was located at a different MinGW file that was not working.
I am having exactly the same problem in Mac OS X 10.6.7.
I installed CodeBlocks 10.05-p1-mac in Development/Applications as instructed. It detects the GNU GCC compiler, I make a new Frame (or Dialog) project from wxWidgets 2.8x using wxSmith, select the default values, and try to run it. It does the same loop as above, continuing to ask to be compiled.
Can someone point me to an OS X solution?
Frederick