Code::Blocks Forums

User forums => Help => Topic started by: Kylotan on July 22, 2007, 06:42:05 pm

Title: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: Kylotan on July 22, 2007, 06:42:05 pm
A fresh installation of Code::Blocks (July 21st nightly) seems unable to find my compiler.

MinGW is installed to E:\code\cpp\mingw.
I installed the contents of the 7 packages listed here: http://wiki.codeblocks.org/index.php?title=MinGW_installation#GCC_3.4.5_manual_install

Then in Code::Blocks, I set the GCC GNU Compiler to look in "E:\code\cpp\mingw" as the compiler's installation directory. Under Search directories, for Compiler/Linker/Resource compiler, all the correct directories are there.

So what's the problem? Am I missing yet another setting? Please don't tell me to install the compiler to C:\MinGW - not everybody can go dropping new directories on the root of their C: drive.
Title: Re: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: raph on July 22, 2007, 06:46:12 pm
You just need to set Settings->Compiler and debugger->Toolchain executables->Compiler's installation directory to E:\code\cpp\mingw.
Title: Re: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: Kylotan on July 22, 2007, 08:43:54 pm
That's exactly what I said I'd done.
Title: Re: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: raph on July 22, 2007, 09:17:20 pm
It should work then. My mingw 3.4.5 installation is in E:\mingw
Does the file E:\code\cpp\mingw\bin\mingw32-gcc.exe exist and did you modify Toolchain executables->Program files?
Title: Re: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: Kylotan on July 22, 2007, 10:11:50 pm
My settings:
(http://www.twilightsembrace.com/_misc/22July07/settings.png)

My directory structure:
(http://www.twilightsembrace.com/_misc/22July07/files.png)

I don't actually have gdb in there, but surely that shouldn't matter for the build stage.
Title: Re: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: raph on July 22, 2007, 10:27:33 pm
Content of gcc-core-*.tar.gz file is missing, please extract it, too.
Title: Re: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: Kylotan on July 22, 2007, 10:33:03 pm
Ah yes, thanks, that fixed it! I obviously didn't extract it properly the first time, somehow.

It would be good if Code::Blocks could give better messages in these situations!
Title: Re: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: tuan on April 12, 2009, 03:16:32 pm
Hi raph, I did the same to Kylotan but I still have problem
(http://img16.imageshack.us/img16/3079/scrd.th.png) (http://img16.imageshack.us/my.php?image=scrd.png)

Can you show me how to fix this problem!

Many thanks
Title: Re: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: MortenMacFly on April 12, 2009, 09:26:03 pm
It would be good if Code::Blocks could give better messages in these situations!
It does if you use a more recent version aka nightly. ;-)
Title: Re: "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."
Post by: PaulD on April 16, 2009, 08:58:38 am
I just had the same problem after downloading the program today. I pulled up the global compiler settings and the compiler installation directory read C:\MinGW.The default install directory was C:\Program Files\CodeBlocks and MinGW was under it. I changed the compiler installation directory and it worked. There's obviously something wrong with the install program. I downloaded the Windows version (codeblocks-8.02mingw-setup.exe) from sourceforge -the link from code::block's web site.