Boost logo

Boost Users :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2008-07-17 09:20:32


Frank van Meurs wrote:

[...]

> Including any of the first three libraries works just fine and results
> in a successful build. However, adding the fourth results in:
>
> ----SNIP----
> Undefined symbols:
> "boost::system::get_posix_category()", referenced from:
> __static_initialization_and_destruction_0(int, int)in test.o
> __static_initialization_and_destruction_0(int, int)in test.o
> "boost::system::get_system_category()", referenced from:
> __static_initialization_and_destruction_0(int, int)in test.o
> __static_initialization_and_destruction_0(int, int)in test.o
> ---/SNIP--- Can anybody point me to a solution for this issue? I really
> prefer using the existing functionality from Boost over wirting them
> myself...

Some Boost library consists of both headers and source files. These source
files are usually compiled into a library, which you need to link with.
 From the error message I would think that you need to link to Boost.System
and Boost.Filesystem.

Those libraries should have been provided upon installation of Boost. If
not, you'll need to figure out how to build them for yourself, or just
include the corresponding sources into your project.

HTH, Markus


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net