Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29275 讨论

DLLEXPORT symbols may not be specified as threadprivate

stydofe1
初学者
638 次查看

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.


0 项奖励
3 回复数
Steven_L_Intel1
638 次查看
It is a Windows restriction. Can't do it in C++ either.
0 项奖励
martymike
新手
638 次查看
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?
0 项奖励
Steven_L_Intel1
638 次查看
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.
0 项奖励
回复