The 2024 Wheel Reinvention Jam is in 16 days. September 23-29, 2024. More info

How to use Thread local storage across DLLs?

Is there any way to declare that a thread-local variable is also exported/imported to/from another DLL? When I use __declspec(thread) in combination with __declspec(dllexport/dllimport), MSVC complains about it.