报错:qtmaind.lib(qtmain_win.obj) : error LNK2019: 无法解析的外部符号 __imp_CommandLineToArgvW,该符号在函数 WinMain 中被引用

原因: 未包含Shell32.lib
 

解决1:

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

解决2:

属性管理器:链接器->输入->附加依赖项->Shell32.lib (在常规中添加好对应附加库目录)

 

参考:https://blog.csdn.net/Ada_who/article/details/80159064

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-30
  • 2021-06-04
  • 2022-01-31
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案