全部博文(59)
分类: 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