libjpeg:编译错误

时间:2012-05-31 13:06:14

标签: c++ jpeg libjpeg

我正在尝试使用mingw-w64编译libjpeg(版本8d)。我发布的用于构建它的命令是:

  • msys.bat
  • ./配置
  • 制作

在第三步,我收到此错误:

$ make 
D:/Builder/bin/make  all-am
make[1]: Entering directory `d:/8d'
    CC    jaricom.lo
    CC    jcapimin.lo
jcapimin.c:127:1: error: conflicting types for 'jpeg_suppress_tables'
jcapimin.c:128:1: note: an argument type that has a default promotion can't match an empty parameter name list declaration
In file included from jcapimin.c:22:0:
jpeglib.h:982:14: note: previous declaration of 'jpeg_suppress_tables' was here
make[1]: *** [jcapimin.lo] Error 1
make[1]: Leaving directory `d:/8d'
make: *** [all] Error 2

有人知道如何解决它吗?

2 个答案:

答案 0 :(得分:11)

运行

$ autoheader
$ ./configure
$ make

答案 1 :(得分:1)

备用解决方案是将#define HAVE_PROTOTYPES 1添加到jconfig.h并按照此处的建议运行makeCompile libjpeg with mingw