DLLEXPORT symbols may not be specified as threadprivate

DLLEXPORT symbols may not be specified as threadprivate

With IVF12, Can a module variable with dllexport or dllimport attribute be a threadprivate varaible, I tiried this without success. Is it a compiler problem? Thanks.

4 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

It is a Windows restriction. Can't do it in C++ either.

Steve

Do you know why this restriction is there?

Our app has thousands of exported module variables (I work with syddofe1). Other than the obvious - writing functions to access and change the variables - is there any other strategy you would recommend?

It's just something not implemented in the Microsoft linker and/or image loader. I can't say "why".

Access functions would seem appropriate to me.

Steve

Faça login para deixar um comentário.