How to configure Code::Blocks to use MinGW Tool set?
Have you read this: http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler ?
Quote from: oBFusCATed on September 12, 2013, 09:46:32 PM
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.next.codeblocks.org/index.php/topic,18075.0.html (http://forums.next.codeblocks.org/index.php/topic,18075.0.html)
Tim S.
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]
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.
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.
Quote from: 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.
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.
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.
Quote from: 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.
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.QuoteI 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.