Problem compiling with boost thread
Hello,
I am trying to compile my application with Boost thread library (1.49.0) on
Ubuntu 11.10 (gcc 4.6.1).
However I see this error:
$(BOOST_PATH)/include/boost/thread/detail/config.hpp:29:24: fatal error:
platform.hpp: No such file or directory
compilation terminated.
In the file $(BOOST_PATH)/include/boost/thread/detail/config.hpp, the
platform.hpp is included as:
#include "platform.hpp"
If I change that to:
#include
Le 21/05/12 12:23, Rajalakshmi Iyer a écrit :
Hello,
I am trying to compile my application with Boost thread library (1.49.0) on Ubuntu 11.10 (gcc 4.6.1). Hi,
I use to compile with gcc under ubuntu and I don't get any error. Could you post the command line?
However I see this error:
$(BOOST_PATH)/include/boost/thread/detail/config.hpp:29:24: fatal error: platform.hpp: No such file or directory compilation terminated.
In the file $(BOOST_PATH)/include/boost/thread/detail/config.hpp, the platform.hpp is included as:
#include "platform.hpp"
If I change that to:
#include
this error goes away.
However, there are a lot of places where headers are included using relative path, thereby causing compilation errors.
I have found just these cases on trunk boost/thread/detail/config.hpp:#include "platform.hpp" libs/thread/src/pthread/thread.cpp:#include "timeconv.inl" libs/thread/test/test_condition_notify_all.cpp:#include "condition_test_common.hpp" libs/thread/test/test_condition_notify_one.cpp:#include "condition_test_common.hpp" libs/thread/test/test_condition_timed_wait_times_out.cpp:#include "util.inl" libs/thread/test/test_shared_mutex.cpp:#include "util.inl" libs/thread/test/test_shared_mutex.cpp:#include "shared_mutex_locking_thread.hpp" libs/thread/test/test_shared_mutex_part_2.cpp:#include "util.inl" libs/thread/test/test_shared_mutex_part_2.cpp:#include "shared_mutex_locking_thread.hpp" libs/thread/test/test_shared_mutex_timed_locks.cpp:#include "util.inl" libs/thread/test/test_shared_mutex_timed_locks.cpp:#include "shared_mutex_locking_thread.hpp" libs/thread/test/test_shared_mutex_timed_locks_chrono.cpp:#include "util.inl" libs/thread/test/test_shared_mutex_timed_locks_chrono.cpp:#include "shared_mutex_locking_thread.hpp" libs/thread/test/test_v2_shared_mutex.cpp:#include "util.inl" libs/thread/test/test_v2_shared_mutex.cpp:#include "shared_mutex_locking_thread.hpp" libs/thread/test/test_v2_shared_mutex_part_2.cpp:#include "util.inl" libs/thread/test/test_v2_shared_mutex_part_2.cpp:#include "shared_mutex_locking_thread.hpp" libs/thread/test/test_v2_shared_mutex_timed_locks.cpp:#include "util.inl" libs/thread/test/test_v2_shared_mutex_timed_locks.cpp:#include "shared_mutex_locking_thread.hpp" Release 1.49 should have less cases. Have you identified other cases?
Is there a workaround for this?
I don't know if -I. could help. I could change all the relative includes, but you could have it only for boost 1.50 (or the trunk). If this is ok for you, could please open a ticket? Best, Vicente P.S. Is Boost.Thread the only Boost library using this construction?
participants (2)
-
Rajalakshmi Iyer
-
Vicente J. Botet Escriba