逃避虽然可耻但有用

逃避虽然可耻但有用

少壮不努力,一生在内地

  • 主页
  • 归档
  • 关于
  • 消失

Windows下编译使用zlib库的程序时出现“无法解析的外部符号 _compress”解决方案

2013-07-01

文章目录
    • 错误描述
    • 解决方案

错误描述

error LNK2019: unresolved external symbol _compress referenced

解决方案

在 #include <zlib.h> 之前加上 #define ZLIB_WINAPI

#define ZLIB_WINAPI
#include <zlib.h>
Programing
Compress Windows Zlib

上一篇

python的zlib压缩解压缩对应的C语言方式

下一篇

一句话经验zlib

文章分类

  • 1 deploy
  • 1 interesting
  • 29 linux
  • 6 notices
  • 28 programing
  • 1 sites
  • 10 summarys
  • 2 works

文章标签

  • c3
  • centos5
  • compress2
  • conf2
  • css2
  • gcc2
  • git3
  • html2
  • https2
  • hugo2
  • install4
  • kernel3
  • layout2
  • libc2
  • linux12
  • ln2
  • make3
  • mud2
  • python3
  • safeseh2
  • style2
  • sudo2
  • ubuntu8
  • windows4
  • yum4
  • zlib4
RSS 订阅

Hello, this is leaker's blog in github.
Leaker: "Living without an aim is like sailing without a compass."

Powered by Hugo and Theme by Fika © 2022 leaker