无法解析的外部符号 __imp__timeGetTime@0

来源:互联网 发布:大数据 涂子沛在线阅读 编辑:程序博客网 时间:2024/06/06 08:00

error LNK2019: 无法解析的外部符号 __imp__timeGetTime@0,该符号在函数 "public: void __thiscall Ccount_sizeView::OnCount(void)" (?OnCount@Ccount_sizeView@@QAEXXZ) 中被引用


原因分析:没有加入相应的链接库,winmm.lib.


解决办法:根据错误提示找到相应位置,然后加入以下这句话就可以了

 #pragma comment(lib, "winmm.lib ")

1 0
原创粉丝点击