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

DLLEXPORT symbols may not be specified as threadprivate

stydofe1
Beginner
635 Views

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 Kudos
3 Replies
Steven_L_Intel1
Employee
635 Views
It is a Windows restriction. Can't do it in C++ either.
0 Kudos
martymike
Novice
635 Views
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 Kudos
Steven_L_Intel1
Employee
635 Views
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 Kudos
Reply