User forums > General (but related to Code::Blocks)
How to configure Code::Blocks to use MinGW Tool set?
jayanthd:
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.
ollydbg:
--- 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.
--- End quote ---
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.
jayanthd:
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.
ollydbg:
--- 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.
--- End quote ---
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?
--- End quote ---
Use Google first, there are many answers but C::B forum is not involved.
Navigation
[0] Message Index
[*] Previous page
Go to full version