User forums > Help
New Install, New User, Modest Knowledge, Probably initial setting problem
Jenna:
"Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> [tab] Toolchain executables"
darvon:
--- Quote from: jens on October 25, 2009, 02:56:38 pm ---"Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> [tab] Toolchain executables"
--- End quote ---
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?
Galindal:
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.
stahta01:
@Galindal
Install an Windows Vista compatible version of MinGW GCC.
This code
--- Code: ---gcc.exe -v
--- End code ---
should return the below or higher version
if has "mingw-vista special" MUST be r3 or higher.
--- Quote ---gcc version 3.4.5 (mingw-vista special r3)
--- End quote ---
Tim S.
Navigation
[0] Message Index
[*] Previous page
Go to full version