Author Topic: Can't build project when build target type is set to GUI?  (Read 4986 times)

Offline dougman

  • Single posting newcomer
  • *
  • Posts: 5
Can't build project when build target type is set to GUI?
« on: July 31, 2013, 07:35:16 am »
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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2979
Re: Can't build project when build target type is set to GUI?
« Reply #1 on: July 31, 2013, 10:02:19 am »
make a rebuild and post the !!!! full !!! build log in code tag


greetings

Offline dougman

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't build project when build target type is set to GUI?
« Reply #2 on: July 31, 2013, 10:13:38 am »
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)
 

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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2979
Re: Can't build project when build target type is set to GUI?
« Reply #3 on: July 31, 2013, 10:16:32 am »
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)
 
[/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

Offline dougman

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't build project when build target type is set to GUI?
« Reply #4 on: July 31, 2013, 10:18:44 am »
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.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't build project when build target type is set to GUI?
« Reply #5 on: July 31, 2013, 10:32:34 am »
If the exe really does not exist in the shown folder, you should check your system's av- and other "security"-software.

Offline dougman

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't build project when build target type is set to GUI?
« Reply #6 on: July 31, 2013, 10:44:36 am »
Is Avast known to have problems with compiling projects? Building it as a console application will give an exe, as well as building other projects, so it would be really weird if Avast was causing a problem.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2979
Re: Can't build project when build target type is set to GUI?
« Reply #7 on: July 31, 2013, 10:59:51 am »
If not the av, then you have messed up your compiler. But if the console target works, it's probably the av.
And i think avast has changed the heueristik in the last update kast night...
« Last Edit: July 31, 2013, 11:01:37 am by BlueHazzard »

Offline dougman

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't build project when build target type is set to GUI?
« Reply #8 on: July 31, 2013, 11:14:46 am »
The problem was in fact caused by Avast! Thank you both a whole bunch, this was driving me crazy!