$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: John Maddock (john_at_[hidden])
Date: 2007-11-12 14:28:06
ancode tran wrote:
>> ../../include/boost/regex/pending/static_mutex.hpp:116: warning:
>> 'bool boost::scoped_static_mutex_lock::locked() const' defined
>> locally after being referenced with dllimport linkage
>>
>> It seems my compiler doesn't like to see "inline" and
>> "__declspec(dllimport)" in the same place. So I have some questions:
>> 1. Should I remove "inline" and rebuild Boost.Regex to skip this
>> warning ?
>> 2. Should I continue to use my own shared version of Boost.Regex ?
>> May it result in such thing like undefined behavior, especially in
>> multithread world ?
>>
>> Can anyone give me a hint, please ? Thanks in advance.
Hmm, it should be OK, I don't believe you can remove the
"__declspec(dllimport)" since that refers to the whole class: which does
have some functions in a separate .cpp file. I don't really see why gcc
would compain about this to be honest.
HTH, John.