Author Topic: Setting up Code::Blocks with a separate distro  (Read 5225 times)

Offline Daleth

  • Single posting newcomer
  • *
  • Posts: 3
Setting up Code::Blocks with a separate distro
« 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~

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Setting up Code::Blocks with a separate distro
« Reply #1 on: August 18, 2013, 02:06:00 am »
Read this http://forums.codeblocks.org/index.php/topic,18075.msg123587.html#msg123587

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

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

Offline Daleth

  • Single posting newcomer
  • *
  • Posts: 3
Re: Setting up Code::Blocks with a separate distro
« Reply #2 on: August 18, 2013, 02:27:59 am »
Read this 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Setting up Code::Blocks with a separate distro
« Reply #3 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

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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Daleth

  • Single posting newcomer
  • *
  • Posts: 3
Re: Setting up Code::Blocks with a separate distro
« Reply #4 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

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~