הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'variable': data with thread storage duration may not have dll interface
Remarks
The variable is declared with the thread attribute and with the DLL interface. The address of the thread variable is not known until run time, so it cannot be linked to a DLL import or export.
Example
The following example generates C2492:
// C2492.cpp
// compile with: /c
class C {
public:
char ch;
};
__declspec(dllexport) __declspec(thread) C c_1; // C2492
__declspec(thread) C c_1; // OK