Code::Blocks

User forums => Help => Topic started by: Daleth on August 18, 2013, 12:54:07 am

Title: Setting up Code::Blocks with a separate distro
Post by: Daleth on August 18, 2013, 12:54:07 am
Hi, this is my first post here, so go easy on me.

I recently downloaded a MinGW distribution from:
http://nuwen.net/mingw.html

However, I was unsuccessful in setting up Code::Blocks to work with this compiler (through the toolchain executables tab). I believe the problem stems from the distro not having executables that are prefixed with "mingw-" in the bin folder, which the default settings of Code::Blocks are set up for. Which other executables from MinGW\bin would work as a C compiler, C++ compiler, and a linker for dynamic libraries?
I tried using "gcc.exe" and "g++.exe", but it still cannot build programs.

Or if I am going about this incorrectly, please tell me the correct way to set everything up.

I appreciate any help, thanks.

Oh, and I already contacted the author of the distro. He recommended I ask here.

~Daleth~
Title: Re: Setting up Code::Blocks with a separate distro
Post by: stahta01 on August 18, 2013, 02:06:00 am
Read this http://forums.codeblocks.org/index.php/topic,18075.msg123587.html#msg123587 (http://forums.codeblocks.org/index.php/topic,18075.msg123587.html#msg123587)

Do the "Third way to manually setup MinGW GCC" directions steps.

Tim S.
Title: Re: Setting up Code::Blocks with a separate distro
Post by: Daleth on August 18, 2013, 02:27:59 am
Read this http://forums.codeblocks.org/index.php/topic,18075.msg123587.html#msg123587 (http://forums.codeblocks.org/index.php/topic,18075.msg123587.html#msg123587)

Do the "Third way to manually setup MinGW GCC" directions steps.

Tim S.

Thank you for the information, but I actually have tried that. I changed the path to C:\MinGW, which is where the new distro is, and for the following "Program Files" sections:
C compiler: gcc.exe
C++ compiler: g++.exe
Linker for dynamic libs: g++.exe

The rest of the program files are set to the same files as if Code::Blocks were downloaded bundled with MinGW:

Linker for static libs: ar.exe
Debugger: GDB/CDB debugger
Resource compiler: windres.exe
Make program: make.exe

When I attempt to build or debug a program, I get a lot of "undefined references to __FOO" errors.
Title: Re: Setting up Code::Blocks with a separate distro
Post by: stahta01 on August 18, 2013, 02:55:36 pm
Then, make sure full compiling logging is turn on. http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

Post the full compiler log on a site that supports programming and MinGW GCC compilers.

This site only supports Code::Blocks.

Your problem is likely user error.

Tim S.
Title: Re: Setting up Code::Blocks with a separate distro
Post by: Daleth on August 19, 2013, 02:50:16 am
Then, make sure full compiling logging is turn on. http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

Post the full compiler log on a site that supports programming and MinGW GCC compilers.

This site only supports Code::Blocks.

Your problem is likely user error.

Tim S.


I apologize. It turns out I set up everything correctly. The problem stemmed from old object files I thought I had cleaned. Everything works fine now.
But thanks for your help!

~Daleth~