Chinaunix首页 | 论坛 | 博客
  • 博客访问: 211052
  • 博文数量: 59
  • 博客积分: 476
  • 博客等级: 下士
  • 技术积分: 530
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-02 13:12
文章分类
文章存档

2012年(3)

2011年(56)

我的朋友

分类: LINUX

2012-03-04 20:51:20

undefined reference to `jpeg_std_error(jpeg_error_mgr*)

 

extern "C" {
#include
}

extern "c" jpeg 有关的头文件包含进来
 
Some users feel that it's easier to call the library from C++ code if you
force VC++ to treat the library as C++ code, which you can do by renaming
all the *.c files to *.cpp (and adjusting the makefile to match). This
avoids the need to put extern "C" { ... } around #include "jpeglib.h" in
your C++ application.

 

undefined reference to `jpeg_std_error'(修改makefile 添加ljpeg)

LIBS          = $(SUBLIBS)  -L/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib -lQtGui -L/usr/local/tslib/lib -L/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib -lQtNetwork -lQtCore -ljpeg –lpthread

阅读(7325) | 评论(0) | 转发(0) |
0

上一篇:Qt4.5.0的安装

下一篇:没有了

给主人留下些什么吧!~~