I regretfully failed to mention that i had tried that and base on what I had read, it was not even needed.
All the same:
g++ -lcurl -lboost_thread -lboost_date_time -lpthread -pthread c.cpp -o app
/tmp/cclPzgNH.o: In function `void boost::this_thread::sleep<boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000ll> >(boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000ll> const&)':
c.cpp:(.text._ZN5boost11this_thread5sleepINS_9date_time18subsecond_durationINS_10posix_time13time_durationELx1000EEEEEvRKT_[void boost::this_thread::sleep<boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000ll> >(boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000ll> const&)]+0x50): undefined reference to `boost::this_thread::sleep(boost::posix_time::ptime const&)'
collect2: ld returned 1 exit status
Also to add.
ldconfig -v | grep boost
ldconfig: Can't stat /lib64: No such file or directory
ldconfig: Cannot stat /usr/lib64/libmudflap.so: No such file or directory
ldconfig: Cannot stat /usr/lib64/libmudflapth.so: No such file or directory
libboost_thread-mt.so.1.35.0 -> libboost_thread.so
libboost_wserialization.so.1.35.0 -> libboost_wserialization.so.1.35.0
libboost_serialization-mt.so.1.35.0 -> libboost_serialization-mt.so.1.35.0
libboost_wserialization-mt.so.1.35.0 -> libboost_wserialization-mt.so.1.35.0
libboost_date_time-mt.so.1.35.0 -> libboost_date_time.so
libboost_date_time.so.1.35.0 -> libboost_date_time.so.1.35.0
libboost_serialization.so.1.35.0 -> libboost_serialization.so.1.35.0
Hope this helps,
I am desperately in need of freeing a time slice for continually looping threads.
John
On Mon, Dec 15, 2008 at 5:01 PM, Ravi <lists_ravi@lavabit.com> wrote:JonOn Monday 15 December 2008 16:55:03 John D wrote:Add -lboost_data_time to get the time definitions.
> g++ -lcurl -lboost_thread -lpthread -pthread c.cpp -o app
That is of course date_time. My fingers do that all the time.
;-)
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users