不允许 dllimport 静态数据成员 的定义,该怎么解决
不允许 dllimport 静态数据成员 的定义
错误 2 error C2491: “CotsComponent::TextFile::ColumnSize”: 不允许 dllimport 静态数据成员 的定义 E:\C++ test\test\CotsWrap\CotsComponent\TextFile\TextFile.cpp 24
------解决思路----------------------
违反VC规则“数据、静态数据成员和函数可以声明,但不能定义为 dllimport。”
错误 2 error C2491: “CotsComponent::TextFile::ColumnSize”: 不允许 dllimport 静态数据成员 的定义 E:\C++ test\test\CotsWrap\CotsComponent\TextFile\TextFile.cpp 24
------解决思路----------------------
违反VC规则“数据、静态数据成员和函数可以声明,但不能定义为 dllimport。”