User forums > Help
Code::Blocks not recognizing compiler
jon14:
--- Quote from: darthdespotism on June 21, 2007, 05:13:19 pm ---I worked it out a few weeks ago.
First search for your cc1plus.exe and add this Directory to your %PATH% - Environment - variable.
The try to compile the Hello World example with -v and try to reconstruct the Directorys told as "not found" at the beginning of the output. Add these via -I directly to the MinGW-Settings in Codeblocks.
--- End quote ---
Thanks for the reply. I'm a little confused though. I found my cc1plus directory, but can't figure out where to put it.
I added the cc1p to the (Search Directories) / (Compiler) tab and also added it to the (Toolchain Exec) / (Compiler Installation Directory) and C++ compiler.
As you can see here:
I'm not sure if I did it right since it gives me the same error.
stahta01:
Change you compiler installation directory to where you installed minGW.
Based on above "C:\C++\MinGW" is your installation directory.
Add "C:\C++\MinGW\libexec\gcc\mingw32\4.2.0" to "Additional Paths"
Tim S
jon14:
--- Quote from: stahta01 on June 21, 2007, 05:48:47 pm ---Change you compiler installation directory to where you installed minGW.
Based on above "C:\C++\MinGW" is your installation directory.
Add "C:\C++\MinGW\libexec\gcc\mingw32\4.2.0" to "Additional Paths"
Tim S
--- End quote ---
Yep, got that in there too. Still not working.
I'm on 3 days now trying to figure this out, I really appreciate all the help and do apologize for being a little annoying.
stahta01:
--- Quote from: jon14 on June 21, 2007, 06:04:26 pm ---Yep, got that in there too. Still not working.
I'm on 3 days now trying to figure this out, I really appreciate all the help and do apologize for being a little annoying.
--- End quote ---
But, has the error changed from "uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]"?
Tim S
jon14:
--- Quote from: stahta01 on June 21, 2007, 06:06:22 pm ---
--- Quote from: jon14 on June 21, 2007, 06:04:26 pm ---Yep, got that in there too. Still not working.
I'm on 3 days now trying to figure this out, I really appreciate all the help and do apologize for being a little annoying.
--- End quote ---
But, has the error changed from "uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]"?
Tim S
--- End quote ---
No, it still gives me the same error.
Here's my C++ compiler directory:
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version