Code::Blocks Forums
User forums => Help => Topic started by: darvon on October 25, 2009, 04:27:13 am
-
New user, non-Software Engineer.
New install.
I didn't get a Compilers auto-detection window with launch.
Settings are on GCC. Trying to build vanilla Console program. First build. no luck.
Build log:
-------------- Build: Release in test2 ---------------
Compiling: main.cpp
Execution of 'mingw32-g++.exe -Wall -fexceptions -O2 -c "C:\Documents and Settings\printer\Desktop\C++\test2\main.cpp" -o obj\Release\main.o' in 'C:\Documents and Settings\printer\Desktop\C++\test2' failed.
Nothing to be done.
Nothing to be done.
I am guessing it is a simple setting problem, but I am clueless.
Help, please.
-
Did you install the MinGW GCC Compiler?
If so, what is the path you installed it in?
What OS? example Windows XP or Windows Vista
What version/SVN of Code::Blocks?
-
Is the toolchain-setting correctly ?
Do you have the mingw32-g++.exe in the bin directory below the toolchains master-path.
If it is named differently, fix the toolchain.
-
Did you install the MinGW GCC Compiler?
I attempted to. I believe installation completed successfully. How would i check for successful installation?
I believe the version is 5.1.4
If so, what is the path you installed it in?
I selected the default. I have searched the HD and find folders at
c:/mingw
What OS? example Windows XP or Windows Vista
XP
What version/SVN of Code::Blocks?
8.02
-
Is the toolchain-setting correctly ?
Do you have the mingw32-g++.exe in the bin directory below the toolchains master-path.
If it is named differently, fix the toolchain.
I am sorry but I do not understand what the toolchain is. How would I find the toolchain setting? How would I find the toolchain master path? How would I fix the toolchain?
mingw32-g++.exe is found at c:\Program Files\CodeBlocks\MinGW\bin
-
"Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> [tab] Toolchain executables"
-
"Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> [tab] Toolchain executables"
The toolchains setting is
C:\MinGW
search finds only
mingw32-g++.exe is found at c:\Program Files\CodeBlocks\MinGW\bin
mingw32-gcc file is at C:\MinGW\bin
--------------------
FINISH
That was the problem. I reset toolchain to
C:\Program Files\CodeBlocks\MinGW
And everything compiled correctly.
Let me explain how I got here for others.
- First installed 802 from "Dummies" CD and got a "using invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Nothing to do" error. I checked the Settings, but didn't see the "toolchain" tab (or rather didn't know it was useful) saw the settings at G++ and hit dead end.
- So reinstalled from Internet and got same error.
- Searched internet for error message. stumbled over a mini-ming install and loaded and did that, which produced the code in C:\ming
- Got posted error, which was progress but not much.
- Found this forum.
- Reset toolchain to c:\Program Files\CodeBlocks\MinGW\bin that was there all along.
- Works fine.
Ongoing question. Can I de-install materials at c:\mingw ??? Are they superfluous?
-
Hello Darvon,
I'm glad to hear you managed to find the solution to your problem.
I also just recently bought the 7 in 1 c++ book for dummies, and I am using all the same default settings you were, and of course, I am getting the same error message. I also searched the forum, and found that same post by Jens to NorthNinja that you added to this post. I followed all those same instructions about the toolchains and bin folders, but alas, I am still getting that message.
"Hello-Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...
Nothing to be done.
I am using the same compiler, same version of code blocks, and the same path, but the one difference I can see is that my OS is Windows Vista, could that be the problem?
Also, while searching the forum I noticed a lot of people seem to be having this problem, and we all seem to be using the same book for dummies. I just thought it was funny that a book that prides itself on being for total beginners baffles all of us. Maybe I should wait for someone to publish an even easier to use book for 5 year-olds? Oh well, good luck on your road to mastering c++, and thanks in advance to you or anyone else out there that may have some advice on this subject.
-
@Galindal
Install an Windows Vista compatible version of MinGW GCC.
This code
should return the below or higher version
if has "mingw-vista special" MUST be r3 or higher.
gcc version 3.4.5 (mingw-vista special r3)
Tim S.