User forums > General (but related to Code::Blocks)
[Solved] - Code::Blocks refuses to compile
NomadShippo:
Hello all,
I seem to have encountered a bit of an issue immediately after installing codeblocks-12.11mingw-setup.exe.Every time I try running the "Hello" program included in the installation I get an error message saying
"Hello - Release": The compiler's setup (Microsoft Visual C++ 2005/2008) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?!
Goto "Settings->Compiler and debugger...->Global compiler settings->Microsoft Visual C++ 2005/2008->Toolchain executables" and fix the compiler's setup.
Skipping...
Nothing to be done (all items are up-to-date).
The compiler I have set to default is the gnu gcc compiler,and I have checked the toolchain paths for it to ensure everything there is correct and have also tried the "reset defaults" to see if that fixes anything.While I cannot seem to find the install path for Microsoft Visual C++ 2005/2008 I have verified that my computer has the various versions of each installed.
I've been trying to figure this out for about an hour to no avail,and thus I come to you guys in hopes that someone here might be able to help.
oBFusCATed:
What is the compiler used for your project/target. You can check it in Project -> Build options.
NomadShippo:
It was apparently a set to MSVisual,and after changing it to Gnu GCC and rebuilding I get the following:
\W3 No such file or directory
\EHsc No such file or directory
\Ox No such file or directory
\DNDEBUG No such file or directory
\MT No such file or directory
,and in an additional popup it states that it cannot find the MSVisual compiler.
oBFusCATed:
The best thing you could do is to recreate the project from scratch and make sure you select the GCC as the compiler for the project.
You can manually clean your project, but it might take too much time.
If you're interested you can remove the option in Build options -> Compiler -> Other options...
NomadShippo:
That seems to do it.Thank you for your help.I am interested in learning to clean my future projects manually should I encounter a similar issue in something larger.Do you perhaps have a link to something that can tell me more about that?
Navigation
[0] Message Index
[#] Next page
Go to full version