I get warnings when I try to enable <boost/thread.hpp> in C ++ Builder. For each module I enable it, C ++ Builder shows these two lines:
thread_heap_alloc.hpp(59): W8128 Can't import a function being defined thread_heap_alloc.hpp(69): W8128 Can't import a function being defined
Already tried something, nothing worked.
It compiles correctly, however, it is nervous. Why is this message displayed?
Lines:
#include <boost/config/abi_prefix.hpp> namespace boost { namespace detail { inline BOOST_THREAD_DECL void* allocate_raw_heap_memory(unsigned size) { void* const eap_memory=detail::win32::HeapAlloc(detail::win32::GetProcessHeap(),0,size); if(!heap_memory) { throw std::bad_alloc(); } return heap_memory; } inline BOOST_THREAD_DECL void free_raw_heap_memory(void* heap_memory) { BOOST_VERIFY(detail::win32::HeapFree(detail::win32::GetProcessHeap(),0,heap_memory)!=0); }
where 59 is { below BOOST_THREAD_DECL , as is 69. It seems that BOOST_THREAD_DECL not defined correctly or incorrectly defined, trying to execute Boost code is not so simple.
This is Boost 1.39.
Henry source share