Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: jayanthd on September 12, 2013, 09:27:42 pm

Title: How to configure Code::Blocks to use MinGW Tool set?
Post by: jayanthd on September 12, 2013, 09:27:42 pm
How to configure Code::Blocks to use MinGW Tool set?
Title: Re: How to configure Code::Blocks to use MinGW Tool set?
Post by: oBFusCATed on September 12, 2013, 09:46:32 pm
Have you read this: http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler ?
Title: Re: How to configure Code::Blocks to use MinGW Tool set?
Post by: stahta01 on September 13, 2013, 12:56:06 am
Have you read this: http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler ?

If this link does NOT help.

Try reading my post in this thread.

http://forums.codeblocks.org/index.php/topic,18075.0.html (http://forums.codeblocks.org/index.php/topic,18075.0.html)

Tim S.
Title: Re: How to configure Code::Blocks to use MinGW Tool set?
Post by: jayanthd on September 13, 2013, 08:19:00 am
Now whenever I start code::blocks I get error mspdb100.dll is missing from your Computer. I click ok and project opens. When I Compile I get the error shown in image.

[attachment deleted by admin]
Title: Re: How to configure Code::Blocks to use MinGW Tool set?
Post by: Jenna on September 13, 2013, 08:24:15 am
It looks like you screwed up your settings and the project or target does not use GCC-compiler, but at least the linker from Microsoft.
Title: Re: How to configure Code::Blocks to use MinGW Tool set?
Post by: jayanthd on September 13, 2013, 10:04:50 am
I didn't screw up anything. I just reinstalled code::blocks and then set the compiler paths as shown and then restarted the IDE and it started giving dll error.
Title: Re: How to configure Code::Blocks to use MinGW Tool set?
Post by: ollydbg on September 13, 2013, 10:16:24 am
I didn't screw up anything. I just reinstalled code::blocks and then set the compiler paths as shown and then restarted the IDE and it started giving dll error.
I look at your screen shot. If I remember correctly, the log message "LNK1104..." is generated from MSVC C++ compiler, not MinGW GCC compiler. So I believe you use the wrong compiler suite.
Title: Re: How to configure Code::Blocks to use MinGW Tool set?
Post by: jayanthd on September 13, 2013, 10:41:02 am
I have posted the Compiler paths. It is clearly MinGW Compiler tool set. I have selected GCC Compiler.


Edit: It worked. I closed and opened code::blocks and it worked and Compiled without problem. I don't know what was the problem. I didn't change anything. See screenshot. I have another question. Where should I ask C++ code related question?

Thanks everybody who answered in this thread.
Title: Re: How to configure Code::Blocks to use MinGW Tool set?
Post by: ollydbg on September 13, 2013, 10:59:04 am
I have posted the Compiler paths. It is clearly MinGW Compiler tool set. I have selected GCC Compiler.



Edit: It worked. I closed and opened code::blocks and it worked and Compiled without problem. I don't know what was the problem. I didn't change anything.
You did change something. Please note that there are two places you have compiler settings:
case 1, Menu->Settings->Compiler settings. This is called "Global compiler settings", you have settings for every compilers, because there is a drop list "selected compiler" to let you select which compiler you are going to set.

case 2, Menu->Project->Build options, this will let you to select compiler to build your project and build targets.

I guess that in the "case 2", you have select "MS Visual C++" compiler for your "SayHi" project, apparently and luckily, your "greet" project use the GCC compiler.


Quote
I have another question. Where should I ask C++ code related question?
Use Google first, there are many answers but C::B forum is not involved.