Daily Archives: November 26, 2007

Install Boost c++ library

 
1. get Boost source code from its official web site.
2. download bjam source codes, which is required to build Boost binaries.
3. build bjam. In my environment, mingw compiler is used. type:
 build.bat mingw
 actually the build.bat is smart enough to detect the right compiler
 at this point, we get bjam at it’s bin.ntx86 dir.
4. build boost. enter boost’s source dir, type:
  bjam –toolset=gcc
  make bjam compiled above, can be accessedwe should specifiy toolset as
  it will be msvc by default that’s not what we expect.
5. to enable content assist, it would better change indexer to full.

Days without pirate software

As University does not allow installing any illegal software to computers, I have to try other
developement tools rather than those I used in China. Fortunately, there are many GNU
tools available, which can substutite commercial tools to some extent. As more understanding
to GNU tools, I come to know they are also very powerful in development. They can do everything
that you have to be done with commerical earlier. Some aspects are even better than commercial.
 
Why not have a try? 
 
c++: Eclipse-CDT/MinGW/Qt/Boost
c#: Visual studio C# 2005 express (not GNU, but free)
Python, PyQt
 
 
 

Eclipse CDT MinGW debug error: error creating session

When I run as debug, the CDT says error creating session, then launching failed.
 
This is araised from missing of gdb. For best integration, I download MinGW gdb binary from MinGW’s download repository.
Then install it to MinGW’s same location. It works. 
 
Nov 29 2007: MinGW GDB debugger is bad; I have suffered various problems in debugging.