Boost logo

Boost Users :

Subject: [Boost-users] installing boost_1_47_0
From: rudy b (rudykeram_at_[hidden])
Date: 2011-08-09 23:23:43


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)':

And, when I change the version of compiler, I get something like:
/tmp/ccw1Sepi.s: Assembler messages:
/tmp/ccw1Sepi.s:408: Error: unknown pseudo-op: `.cfi_personality'
/tmp/ccw1Sepi.s:409: Error: unknown pseudo-op: `.cfi_lsda'
/tmp/ccw1Sepi.s:531: Error: unknown pseudo-op: `.cfi_personality'
/tmp/ccw1Sepi.s:532: Error: unknown pseudo-op: `.cfi_lsda'
/tmp/ccw1Sepi.s:722: Error: unknown pseudo-op: `.cfi_personality'
/tmp/ccw1Sepi.s:723: Error: unknown pseudo-op: `.cfi_lsda'
/tmp/ccw1Sepi.s:1046: Error: unknown pseudo-op: `.cfi_personality'

Please advise,
thanks,
RB


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