Code::Blocks Forums
User forums => Help => Topic started 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~
-
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.
-
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.
-
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.
-
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~