Boost logo

Boost Users :

From: Frank van Meurs (Frank.vanMeurs_at_[hidden])
Date: 2008-07-17 06:28:02


Hello,

I'm trying to use the filesystem libraries provided by Boost (1.35)
through "boost/filesystem.hpp". I've installed Boost via macports and
checked whether or not the installation is up to date, which it is.
Moreover, I can use (some) other Boost libraries just fine, but not the
abovementioned one.

I'm using the following code to access several libraries:

----SNIP----
#include <boost/regex.hpp>
#include <boost/signals.hpp>
#include <boost/system/error_code.hpp>
#include <boost/filesystem.hpp>
---/SNIP----

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...

Thanks in advance. Kind regards,
Frank

--------------------
Frank van Meurs
Dept. of Information and Computer Sciences, Utrecht University
Padualaan 14, 3584 CH Utrecht, The Netherlands
P: +31 (0)30 - 253 9128
F: +31 (0)30 - 253 4619
W: http://www.cs.uu.nl/staff/fvm.html


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