User forums > Help

Can't build project when build target type is set to GUI?

(1/2) > >>

dougman:
Hi everyone. I'm working a project which just yesterday was working fine. But starting tonight, it wouldn't build when I click "Build" or "Build and run" I didn't think I had changed anything major, but I checked older/backup versions of the same project and none of them would build either. I noticed that if I set the build type to "Console application" that the project builds fine, but when I set it back to GUI, nothing happens. Clicking "Build and run" will simply have it say that the project hasn't been built and prompt me to do so, but clicking yes does nothing. Sorry if this has been asked before, I did a search and was unable to find anything.

BlueHazzard:
make a rebuild and post the !!!! full !!! build log in code tag


greetings

dougman:

--- Code: ----------------- Clean: Debug in controltest (compiler: GNU GCC Compiler)---------------

Cleaned "controltest - Debug"

-------------- Build: Debug in controltest (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\ControlTest.cpp" -o obj\Debug\ControlTest.o
In file included from C:\Users\My Files\Desktop\controltest\ControlTest.cpp:8:0:
C:\Users\My Files\Desktop\controltest\GameManager.h:17:31: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
C:\Users\My Files\Desktop\controltest\GameManager.h:18:27: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
C:\Users\My Files\Desktop\controltest\ControlTest.cpp: In function 'int SDL_main(int, char**)':
C:\Users\My Files\Desktop\controltest\ControlTest.cpp:112:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Enemy.cpp" -o obj\Debug\Enemy.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Functions.cpp" -o obj\Debug\Functions.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\GameManager.cpp" -o obj\Debug\GameManager.o
In file included from C:\Users\My Files\Desktop\controltest\GameManager.cpp:1:0:
C:\Users\My Files\Desktop\controltest\GameManager.h:17:31: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
C:\Users\My Files\Desktop\controltest\GameManager.h:18:27: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Globals.cpp" -o obj\Debug\Globals.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Node.cpp" -o obj\Debug\Node.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Object.cpp" -o obj\Debug\Object.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\PathFinder.cpp" -o obj\Debug\PathFinder.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Player.cpp" -o obj\Debug\Player.o
C:\Users\My Files\Desktop\controltest\Player.cpp: In member function 'void Player::FireProjectile()':
C:\Users\My Files\Desktop\controltest\Player.cpp:368:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
C:\Users\My Files\Desktop\controltest\Player.cpp: In member function 'void Player::UpdateProjectiles(Uint32)':
C:\Users\My Files\Desktop\controltest\Player.cpp:387:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
C:\Users\My Files\Desktop\controltest\Player.cpp: In member function 'void Player::ShowProjectiles()':
C:\Users\My Files\Desktop\controltest\Player.cpp:398:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Projectile.cpp" -o obj\Debug\Projectile.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Sprite.cpp" -o obj\Debug\Sprite.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Tile.cpp" -o obj\Debug\Tile.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\TileManager.cpp" -o obj\Debug\TileManager.o
mingw32-g++.exe -Wall  -g    -I"C:\Users\My Files\SDL-1.2.15\include"  -c "C:\Users\My Files\Desktop\controltest\Timer.cpp" -o obj\Debug\Timer.o
mingw32-g++.exe -L"C:\Users\My Files\SDL-1.2.15\lib"  -o bin\Debug\controltest.exe obj\Debug\ControlTest.o obj\Debug\Enemy.o obj\Debug\Functions.o obj\Debug\GameManager.o obj\Debug\Globals.o obj\Debug\Node.o obj\Debug\Object.o obj\Debug\PathFinder.o obj\Debug\Player.o obj\Debug\Projectile.o obj\Debug\Sprite.o obj\Debug\Tile.o obj\Debug\TileManager.o obj\Debug\Timer.o   -lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer   -mwindows
Process terminated with status 0 (0 minutes, 6 seconds)
0 errors, 8 warnings (0 minutes, 6 seconds)
 
--- End code ---

Is this what you meant by build log?
I do have some other projects that I build as GUIs that work fine, but this one and all the older versions of it I have don't, it's quite strange.

BlueHazzard:

--- Code: ---[quote author=dougman link=topic=18211.msg124518#msg124518 date=1375258418]
\Node.o obj\Debug\Object.o obj\Debug\PathFinder.o obj\Debug\Player.o obj\Debug\Projectile.o obj\Debug\Sprite.o obj\Debug\Tile.o obj\Debug\TileManager.o obj\Debug\Timer.o   -lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer   -mwindows
Process terminated with status 0 (0 minutes, 6 seconds)
0 errors, 8 warnings (0 minutes, 6 seconds)
 
--- End code ---
[/quote]

there you have... The program is build successfully (beside the 8 warnings).
Does the executable exists? If so, you have a problem in your code.

greetings

dougman:
There is no exe at all, no. I wouldn't think there would be a problem with the code, as it was working fine just yesterday.

Navigation

[0] Message Index

[#] Next page

Go to full version