User forums > Help
compiled program doesn't work
Trafficjunky:
oh sry
--- Code: ----------------- Clean: Release in HalloWorld (compiler: GNU GCC Compiler)---------------
Cleaned "HalloWorld - Release"
-------------- Build: Release in HalloWorld (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -O2 -Wextra -IC:\SDL\SDL-1.2.13\include -IC:\SDL\SDL_image-1.2.12\include -IC:\Users\-\Documents\SDLmenu\lib -IC:\Users\-\Documents\SDLmenu\include -c C:\Users\-\Documents\HalloWorld\main.cpp -o obj\Release\main.o
mingw32-g++.exe -LC:\SDL\SDL-1.2.13\lib -LC:\SDL\SDL_image-1.2.12\lib -LC:\Users\-\Documents\SDLmenu\lib -o bin\Release\HalloWorld.exe obj\Release\main.o -s -lmingw32 -lSDLmain -lSDL "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libSDLmain.a" "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libSDL.dll.a" "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libmingw32.a" "C:\Program Files (x86)\CodeBlocks\MinGW\lib\SDL_image.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libwinmm.a"
Output size is 9.50 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)
--- End code ---
is that what you are looking for?
stahta01:
Get rid of all the SDL stuff and maybe a simple "Hello World" will work!
1. Remove all the SDL from the Project Compiler/Linker Settings.
2. Remove all the SDL from the Global Compiler/Linker Settings.
Tim S.
Trafficjunky:
no didn't ...
--- Code: ----------------- Clean: Release in HalloWorld (compiler: GNU GCC Compiler)---------------
Cleaned "HalloWorld - Release"
-------------- Build: Release in HalloWorld (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -O2 -Wextra -c C:\Users\-\Documents\HalloWorld\main.cpp -o obj\Release\main.o
mingw32-g++.exe -o bin\Release\HalloWorld.exe obj\Release\main.o -s
Output size is 9.50 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)
--- End code ---
stahta01:
Compile and Link an EXE from the command line, does it work?
If yes, post the commands you used on the command line.
(Likely a CB toolchain setting issue)
If no, your Compiler has an issues?
Tim S.
Trafficjunky:
Okay I thank you all! Just found the problem. I've installed MinGW twice and CB's auto search took the false one. Now everything works like it did before.
Navigation
[0] Message Index
[*] Previous page
Go to full version