User forums > Help
Projects will not build
stahta01:
Post the Full Compiler Re-build log in Code Tags.
After Compiler issues, The next obvious issues is Windows Security or Virus Scanner issues.
FYI: Building code on the desktop might NOT be allowed by Windows Security or the Virus scanner software!
Tim S.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_My_build_fails_in_the_compile.2Flink.2Frun_step_with_a_Permission_denied_error.3F
Andrew Cay:
All I have for code is : main.cpp
--- Code: ---#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
This is what happens when I try building the project
--- Code: ----------------- Build: Debug in proj (compiler: GNU GCC Compiler)---------------
g++.exe -Wall -fexceptions -g -c "C:\Program Files (x86)\CodeBlocks\projects\proj\main.cpp" -o obj\Debug\main.o
Execution of 'g++.exe -Wall -fexceptions -g -c "C:\Program Files (x86)\CodeBlocks\projects\proj\main.cpp" -o obj\Debug\main.o' in 'C:\Program Files (x86)\CodeBlocks\projects\proj' failed.
Nothing to be done (all items are up-to-date).
--- End code ---
This is what happens when I try running a project ( it loops with a "no build, want to build it?" until I press no. )
--- Code: ---Checking for existence: C:\Program Files (x86)\CodeBlocks\projects\proj\bin\Debug\proj.exe
Executing: "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "C:\Program Files (x86)\CodeBlocks\projects\proj\bin\Debug\proj.exe" (in C:\Program Files (x86)\CodeBlocks\projects\proj\.)
Process terminated with status -1073741510 (0 minutes, 3 seconds)
--- End code ---
Same thing happens in a different location, from desktop to c drive. An exe is never made for the project apparently. It must be a bad compiler, correct? I mean - I'm 100% sure my anti-virus isn't blocking anything- but I don't know about windows.
BlueHazzard:
--- Quote ---Execution of 'g++.exe -Wall -fexceptions -g -c "C:\Program Files (x86)\CodeBlocks\projects\proj\main.cpp" -o obj\Debug\main.o' in 'C:\Program Files (x86)\CodeBlocks\projects\proj' failed.
--- End quote ---
C::B can't find you compiler...
Check the settings in Settings->Compiler->Selected compiler="GNU gcc Compiler"->Toolchain Executables if the path is correct
If you are using mingw "g++" is definitively wrong... Have you removed the old compiler, before installing the new one?
greetings
stahta01:
Another link to thread with related problem.
http://forums.codeblocks.org/index.php/topic,17030.0.html
It contains my post the checks the Compiler.
http://forums.codeblocks.org/index.php/topic,17030.msg116201.html#msg116201
FYI: You NEED to know what folder works in Windows 7; Please stop using special folders!
Windows 7 tend to block that.
A good location to contain CB project suggested by another poster.
--- Quote from: oBFusCATed on June 30, 2013, 12:35:19 pm ---ToApolytoXaos: A path inside "c:\Documents and settings\blabla" or the modern "c:\user\blabla"
--- End quote ---
Tim S.
Andrew Cay:
Thank's so much for your help! It really means a lot to me guys.
The problem was that my old mingw was bad, BUT I did have the new mingw on my computer thanks to the codeblocks installation that included it. What I had to do was completely remove all my old mingw files. This way, it wasn't automatically finding the bad one, and now everything works.
Thank's stahta01, you're a great person! Also you too blueHazzard, you were right about the g++ - but I forgot to reset the compiler to defaults after testing a couple answers I found on stack overflow (which didn't work) .
Sorry for the hassle everyone, really.
Ps, I'd just like to add: Windows 7 is not blocking me from using special paths. Desktop, nor the programs x86. But if it does in the future, I'll know what to do!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version