zoukankan      html  css  js  c++  java
  • VS2015 MSVCRTD.lib(_chandler4gs_.obj) : error LNK2019: unresolved external symbol __except_handler4_common referenced in function __except_handler4

    今天在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,果然,程序编译成功。

  • 相关阅读:
    vue2手写vuex
    200.岛屿数量(DFS M-岛屿系列)
    739.每日温度(栈M)
    150.逆波兰表达式求值(栈M)
    20.有效的括号(栈L)
    前端性能优化与SEO优化整理
    Typescript:类型断言
    如何在浏览器中快速调试Typescript
    Typescript:枚举
    Typescript:接口
  • 原文地址:https://www.cnblogs.com/Forever-Kenlen-Ja/p/7063243.html
Copyright © 2011-2022 走看看