全部博文(113)
分类: 嵌入式
2011-05-05 12:19:33
I am totally smitten by Code::blocks its too great. However, a lot of libs that i have to use required Visual studio and frankly, using a linux based compiler for windows programming isn’t a nice idea.
After trying visual studio for like 1-2 hrs, i gave it up as bad job. Finally i found how to integrate Visual studio 2005 compilation tools into Code::blocks itself!!
So, I studied imported solution and tried building it, and with some mixing and matching, i am getting fairly consistent results. So, heres the howto:
1. Settings -> Compiler and Debugger
a) Change selected compiler to Visual Studio 2005 / 2008
2. compiler flags:
3. In search paths, (
Compiler
Linker
Resource Compiler
4. Toolchain executables
specify path as
In additional paths,
Other settings:
If you want build log to be saved to html file, then goto other settings tab and enable save build log in html file when build is finished and if needed the sub option too.
There you go! I got my program to compile flawlessly using the above settings, you might need to change some settings according to your taste, however, this is the basic outline.