News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Problem Building project with Code::Block

Started by arashfahim, October 04, 2010, 12:31:23 AM

Previous topic - Next topic

Jenna

Go to "Settings -> Compiler and debugger... -> GCC -> Toolchain executables" and make sure the compiler installation dir points to the directory of your MinGW-install that includes the bin-dir (not the bin-dir itself) and make sure the executables that are set exist in the bin-dir of your MinGW-install.

stahta01

#16
It looks like you have added the include path the Compilers uses automatically in the wrong way.

Check your Code::Blocks compiler configuration.

Edit: Make sure you pick the right Compiler from the "Selected Compiler" Pull-down list and make it the default compiler


This one is likely right
"Settings->Compiler and Debugger->Global Compiler settings->Toolchain executables"

But,
"Settings->Compiler and Debugger->Global Compiler settings->Search Directory" is likely wrong
The Three Sub Tabs are empty on me.

And
"Settings->Compiler and Debugger->Global Compiler settings->Linker Settings"
is also empty on mine.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

arashfahim

The compiler I chose is GNU GCC Compiler.
"Settings->Compiler and Debugger->Global Compiler settings->Search Directory" was not empty in mine. I deleted all the PATHs.
The other tabs were empty.
It fixed the problem. Thanks a lot every body.