User forums > Help

Using Boost in Code Blocks

<< < (2/2)

cacb:
I am not using MinGW, but I am using boost (old version, but ignore that)

I have created a Code::Blocks global variable "boost"

--- Code: ---base:     [path]\boost\boost_1_49_0
include:  [path]\boost\boost_1_49_0
lib:      [path]\boost\boost_1_49_0\stage\lib

--- End code ---

(replace [path] with the path to where your boost is installed. Obviously set the version number to the relevant number you are using)

Then in your project build options "Search directories", add
compiler: $(#boost.include)
linker: $(#boost.lib)

Sometimes you also have to add the library name in the "linker settings",

Navigation

[0] Message Index

[*] Previous page

Go to full version