今天在VS2015中用编译好的QT5静态库打包软件,配置好QT的静态环境后,

发现报MSVCRTD.lib(_chandler4gs_.obj) : error LNK2019: unresolved external symbol __except_handler4_common referenced in function __except_handler4

错误,显然__except_handler4 是定义在VC运行时库的函数,显然这个函数被自动linked了,肯定是某个地方使用了动态链接到运行时库的

lib了,排查排查,果然,只有一个模块zlib.lib,我用了里面的crc校验和文件操作的函数,但是使用的函数并没报错,可能是提前的error已经出现,

后面的errror还没有链接到,所有函数没报链接错误,MSVCRTD.lib(_chandler4gs_.obj) : error LNK2019: unresolved external symbol __except_handler4_common referenced in function __except_handler4错误,所以我先去掉了这个zlib.lib,果然,程序编译成功。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-01-03
  • 2021-09-07
  • 2022-01-26
  • 2021-11-15
猜你喜欢
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案