
On Mon, 18 Apr 2005 18:05:49 +0100, Gander wrote:
I have these: -
l /usr/lib/libboost_*date* lrwxrwxrwx 1 root root 28 Apr 10 18:42 /usr/lib/libboost_date_time.so.1 -> libboost_date_time.so.1.32.0 -rwxr-xr-x 1 root root 123314 Apr 10 18:39 /usr/lib/libboost_date_time.a -rwxr-xr-x 1 root root 74296 Apr 10 18:39 /usr/lib/libboost_date_time.so.1.32.0
locate 'libboost_date_time.so' /usr/lib/libboost_date_time.so.1
I have re-installed 1.31 and re-compiled days_alive and it's still complaining.
Be careful. I think the days_alive example changed between 1.31 & 1.32. I don't believe the 1.32 version will compile against the 1.31 library.
rpm -qpl boost-1.31.0-7.i386.rpm /usr/lib/libboost_date_time.a /usr/lib/libboost_date_time.so.1.31.0
You are missing the libboost_date_time.so symlink. I can duplicate your error if I remove the symlink from my lib directory so I get the following: libdir has libboost_date_time-gcc-1_32.a libboost_date_time-gcc-1_32.so.1.32.0 `g++ -I$BOOST_ROOT -Llibdir days_alive.cpp -lboost_date_time-gcc-1_32` Compiles fine. `stat` shows file size 133276 (statically linked) Recompile (different command): `g++ -I$BOOST_ROOT -Llibdir -lboost_date_time-gcc-1_32 days_alive.cpp` I get the same error you do. Replace the symlink... ` ln -s libboost_date_time-gcc-1_32.so.1.32.0 libboost_date_time-gcc-1_32.so` Recompile: `g++ -I$BOOST_ROOT -Llibdir -lboost_date_time-gcc-1_32 days_alive.cpp` Compiles fine. `stat` shows file size 78764 (dynamically linked). When I built the 1.30 srpm, it included the symlink in the rpm file that was built. I'd say there was an error introduced when the srpm was assembled. If you add your own symlink everything should be fine. Bart