未定義的靜態成員引用我正在使用交叉編譯器。我的代碼是:class WindowsTimer{public:
WindowsTimer(){
_frequency.QuadPart = 0ull;
} private:
static LARGE_INTEGER _frequency;};我收到以下錯誤:對WindowsTimer :: _ frequency'的未定義引用我也嘗試將其改為LARGE_INTEGER _frequency.QuadPart = 0ull;要么static LARGE_INTEGER _frequency.QuadPart = 0ull;但我仍然得到錯誤。有誰知道為什么?
- 3 回答
- 0 關注
- 519 瀏覽
添加回答
舉報
0/150
提交
取消