
2011/8/10 rudy b
Hi, I am newb in using boost. And, I am having so much trouble installing and running a simple example. I would REALLY appreciate some help.
I tried to install boost_1_47_0.tar.gz on my unix machine, and I followed the stpes
http://www.boost.org/doc/libs/1_47_0/more/getting_started/unix-variants.html
to first build, and install the libraries.
I had no problem running some the examples (provided on the link above, that was using some of its already built libraries), and they all worked.
The problem is when I try to run an example that is using a boost_filesystem.
I tried uninstalling/installing different boost versions, cause I thought the error may be version dependent, but it wasn't. I also tried to built the entire library using different versions of gcc (3.4.6, 4.3.5, 4.4.0, 4.5.0, 4.5.1, 4.5.2, 4.6.0), and I get the same error messages. I even made sure that when compile, I have the boost_1_4x_0 path in my compile script. I also made sure that I have appended boost_1_4x_0 path to my $path.
I even tried to have -lboost_filesystem in my compile script, but this didn't help either !!!
This is the type of error that I am getting:
/tmp/cczDoDOU.o: In function `__static_initialization_and_destruction_0(int, int)': sync.cpp:(.text+0xe03): undefined reference to `boost::system::generic_category()' sync.cpp:(.text+0xe1e): undefined reference to `boost::system::generic_category()' sync.cpp:(.text+0xe39): undefined reference to `boost::system::system_category()' /tmp/cczDoDOU.o: In function `boost::filesystem3::last_write_time(boost::filesystem3::path const&, long)':
Try to link Boost.System (e.g. -lboost_system) as well.