undefined reference to `jpeg_std…
来源:互联网 发布:php毕业设计题目大全 编辑:程序博客网 时间:2024/06/05 11:58
用gcc编译的动态库要在g++中使用的话,在包含头文件时要使用extern "C".
如:
extern "C" {
#include <jpeglib.h>
}
#include <jpeglib.h>
}
。因为c++编译器会对函数名进行重整。不然会提示找不到函数名。
0 0
- undefined reference to `jpeg_std…
- undefined reference to `jpeg_std…
- undefined reference to…
- undefined reference to 'pthread_…
- undefined reference to 'pthread_…
- undefined reference to main,Ecl…
- undefined reference to 'pthread_…
- C 语言 undefined reference to 's…
- C 语言 undefined reference to 's…
- yii2 Call to undefined functi…
- 链接时报错:undefined reference …
- The reference to entity "charact…
- How to get a good idea to perfor…
- How to pass a hash to a subrouti…
- How to move LOB Data to Another …
- unable to create …
- OracleserviceSID to write to net…
- how to do with a slow oracle dat…
- SIFT算法的一些基本概念
- qtopia 学习笔记
- qtopia 学习笔记
- OpenGL ES 贴图图片是否有 Alpha 通道以及图片大小导致无法显示帖图的原因分析
- undefined reference to `jpeg_std…
- undefined reference to `jpeg_std…
- V4L2摄像头获取单幅图片测试程序
- V4L2摄像头获取单幅图片测试程序
- Video for Linux Two API Specific…
- Video for Linux Two API Specific…
- V4L2 - Linux下视频驱动模型
- V4L2 - Linux下视频驱动模型
- pthread_create使用类中函数指针的…
- pthread_create使用类中函数指针的…