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