
On Thu, May 27, 2010 at 9:50 PM, Andrey Semashev <andrey.semashev@gmail.com> wrote:
What version of the library do you use? Is it used in a context when its binary is dynamically loaded? If so, try disabling compiler-supplied TLS by defining BOOST_LOG_NO_COMPILER_TLS.
I'm using rev479, since it is the last one compatible with boost 1.40.0. I recompiled the library using BOOST_LOG_NO_COMPILER_TLS today and it solves my problem indeed! I've read about the define but considered it irrelevant for my case until now: PInvoke on .NET uses delay-loading. Still interesting that error did not occur on Windows7. Thanks for your help, I greatly appreciated it!
BTW, are the BOOST_LOG_FUNCTION/BOOST_LOG_NAMED_SCOPE macros only used from pure C++ code?
Yes. Best regards, Christoph