<div class="gmail_quote">2011/8/10 rudy b <span dir="ltr">&lt;<a href="mailto:rudykeram@gmail.com">rudykeram@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
I am newb in using boost. And, I am having so much trouble installing<br>
and running a simple example. I would REALLY appreciate some help.<br>
<br>
<br>
I tried to install boost_1_47_0.tar.gz on my unix machine, and I<br>
followed the stpes<br>
<br>
<a href="http://www.boost.org/doc/libs/1_47_0/more/getting_started/unix-variants.html" target="_blank">http://www.boost.org/doc/libs/1_47_0/more/getting_started/unix-variants.html</a><br>
<br>
to first build, and install the libraries.<br>
<br>
I had no problem running some the examples (provided on the link<br>
above, that was using some of its already built libraries), and they<br>
all worked.<br>
<br>
The problem is when I try to run an example that is using a<br>
boost_filesystem.<br>
<br>
I tried uninstalling/installing different boost versions, cause I<br>
thought the error may be version dependent, but it wasn&#39;t.<br>
I also tried to built the entire library using different versions of<br>
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<br>
same error messages.<br>
I even made sure that when compile, I have the boost_1_4x_0 path in my<br>
compile script. I also made sure that I have appended boost_1_4x_0<br>
path to my $path.<br>
<br>
I even tried to have -lboost_filesystem in my compile script, but this<br>
didn&#39;t help either !!!<br>
<br>
This is the type of error that I am getting:<br>
<br>
/tmp/cczDoDOU.o: In function<br>
`__static_initialization_and_destruction_0(int, int)&#39;:<br>
sync.cpp:(.text+0xe03): undefined reference to<br>
`boost::system::generic_category()&#39;<br>
sync.cpp:(.text+0xe1e): undefined reference to<br>
`boost::system::generic_category()&#39;<br>
sync.cpp:(.text+0xe39): undefined reference to<br>
`boost::system::system_category()&#39;<br>
/tmp/cczDoDOU.o: In function<br>
`boost::filesystem3::last_write_time(boost::filesystem3::path const&amp;,<br>
long)&#39;:<br></blockquote><div><br>Try to link Boost.System (e.g. -lboost_system) as well. <br><br></div></div>

