User forums > Help
C::B doesn't create a new .exe unless i rebuild the entire project!
Tallkotten:
I've used C::B on and off for a while now and I've only recently begun to have this problem (a day or two).
Anyways, if i "build and run" the project it doesn't create a new EXE but instead run the last one created, i have to rebuild or clean the project for it to actually create a new EXE that represent the code I've written. It gets really frustrating since i cant even see a int changed to 5 from 10 in action without a total rebuild.
This is a buildlog from when i've pressed F9 (Build and run)
"Checking for existence: C:\Users\*****\Documents\CodeBlocks\Spel\bin\Debug\Spel.exe
Executing: "C:\Users\*****\Documents\CodeBlocks\Spel\bin\Debug\Spel.exe" (in C:\Users\*****\Documents\CodeBlocks\Spel\.)
Process terminated with status 0 (0 minutes, 2 seconds)"
I'd appreciate help vary much since this is really putting me off the mood to code. I've tried a re-install of Code::Blocks and that didn't make a difference.
// Tallkotten
Jenna:
Please post the build log without trying to run the executable, just click build or use Ctrl+F9 as hotkey.
And turn on full commandline log (if it is not already), see : http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Tallkotten:
--- Code: ----------------- Build: Debug in Spel ---------------
mingw32-g++.exe -Wall -g g++ test.cpp -std=c++0x -I"C:\Program Files (x86)\CodeBlocks\MinGW\include\SDL" -IC:\SDL-1.2.15_mingw32\include -c C:\Users\Johan\Documents\CodeBlocks\Spel\tile.cpp -o obj\Debug\tile.o
mingw32-g++.exe: g++: No such file or directory
mingw32-g++.exe: test.cpp: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
--- End code ---
That is what i got when he hit "rebuild" and then build on the main.cpp file.
Thanks for a speedy response :)
stahta01:
Determine where the values "g++" and "test.cpp" was entered in error.
Likely in the linker or compiler other option settings in the project settings
Or, in the Global Compiler/Linker other options.
Tim S.
Tallkotten:
Could you expand on that? Did not quite get where i should look and for what.
I went into Project Settings -> Build Options -> Debug -> Other options (under compiler settings) and there i find this "g++ test.cpp -std=c++0x". It tells me nothing thought :/
Navigation
[0] Message Index
[#] Next page
Go to full version