[Chessx-users] cannot compile chessx-1.0.0 (quazip)
Chess Database and PGN viewer
Brought to you by:
hognose
From: Gitsis C. <cg...@gm...> - 2014-02-15 08:25:50
|
Hello, I cannot compile it under linux, g++ (Gentoo 4.8.1-r1 p1.2, pie-0.5.7) 4.8.1 What might be the problem? g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQUAZIP_STATIC -DQT_NO_CAST_TO_ASCII -DQT_USE_QSTRINGBUILDER -DQT_NO_DEBUG_OUTPUT -DNDEBUG -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -Isrc/database -Isrc/guess -Isrc/gui -Isrc/quazip -I/usr/src/3rdparty/zlib -Isrc/generated -Isrc/generated -o obj_rel/mainwindow.o src/gui/mainwindow.cpp In file included from src/quazip/zip.h:60:0, from src/quazip/quazip.h:31, from src/gui/mainwindow.cpp:37: src/quazip/ioapi.h:40:43: σφάλμα: expected initializer before ‘OF’ typedef voidpf(ZCALLBACK *open_file_func) OF((voidpf opaque, voidpf file, int mode)); ^ src/quazip/ioapi.h:41:42: σφάλμα: expected initializer before ‘OF’ typedef uLong(ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size)); ^ src/quazip/ioapi.h:42:43: σφάλμα: expected initializer before ‘OF’ typedef uLong(ZCALLBACK *write_file_func) OF((voidpf opaque, voidpf stream, const void* buf, uLong size)); ^ src/quazip/ioapi.h:43:42: σφάλμα: expected initializer before ‘OF’ typedef uLong(ZCALLBACK *tell_file_func) OF((voidpf opaque, voidpf stream)); ^ src/quazip/ioapi.h:44:41: σφάλμα: expected initializer before ‘OF’ typedef int (ZCALLBACK *seek_file_func) OF((voidpf opaque, voidpf stream, uLong offset, int origin)); ^ src/quazip/ioapi.h:45:42: σφάλμα: expected initializer before ‘OF’ typedef int (ZCALLBACK *close_file_func) OF((voidpf opaque, voidpf stream)); ^ src/quazip/ioapi.h:46:46: σφάλμα: expected initializer before ‘OF’ typedef int (ZCALLBACK *testerror_file_func) OF((voidpf opaque, voidpf stream)); ^ src/quazip/ioapi.h:50:5: σφάλμα: ‘open_file_func’ does not name a type open_file_func zopen_file; ^ src/quazip/ioapi.h:51:5: σφάλμα: ‘read_file_func’ does not name a type read_file_func zread_file; ^ src/quazip/ioapi.h:52:5: σφάλμα: ‘write_file_func’ does not name a type write_file_func zwrite_file; ^ src/quazip/ioapi.h:53:5: σφάλμα: ‘tell_file_func’ does not name a type tell_file_func ztell_file; ^ src/quazip/ioapi.h:54:5: σφάλμα: ‘seek_file_func’ does not name a type seek_file_func zseek_file; ^ src/quazip/ioapi.h:55:5: σφάλμα: ‘close_file_func’ does not name a type close_file_func zclose_file; ^ src/quazip/ioapi.h:56:5: σφάλμα: ‘testerror_file_func’ does not name a type testerror_file_func zerror_file; ^ src/quazip/ioapi.h:62:30: σφάλμα: expected initializer before ‘OF’ void fill_qiodevice_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); ^ In file included from src/quazip/quazip.h:31:0, from src/gui/mainwindow.cpp:37: src/quazip/zip.h:121:32: σφάλμα: expected initializer before ‘OF’ extern zipFile ZEXPORT zipOpen OF((voidpf file, int append)); ^ src/quazip/zip.h:141:33: σφάλμα: expected initializer before ‘OF’ extern zipFile ZEXPORT zipOpen2 OF((voidpf file, ^ src/quazip/zip.h:146:40: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file, ^ src/quazip/zip.h:170:41: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file, ^ src/quazip/zip.h:186:41: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file, ^ src/quazip/zip.h:211:40: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT zipWriteInFileInZip OF((zipFile file, ^ src/quazip/zip.h:218:38: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT zipCloseFileInZip OF((zipFile file)); ^ src/quazip/zip.h:223:41: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file, ^ src/quazip/zip.h:232:29: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT zipClose OF((zipFile file, ^ In file included from src/quazip/quazip.h:32:0, from src/gui/mainwindow.cpp:37: src/quazip/unzip.h:127:45: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzStringFileNameCompare OF((const char* fileName1, ^ src/quazip/unzip.h:140:32: σφάλμα: expected initializer before ‘OF’ extern unzFile ZEXPORT unzOpen OF((voidpf file)); ^ src/quazip/unzip.h:151:33: σφάλμα: expected initializer before ‘OF’ extern unzFile ZEXPORT unzOpen2 OF((voidpf file, ^ src/quazip/unzip.h:158:29: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzClose OF((unzFile file)); ^ src/quazip/unzip.h:165:37: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzGetGlobalInfo OF((unzFile file, ^ src/quazip/unzip.h:173:40: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzGetGlobalComment OF((unzFile file, ^ src/quazip/unzip.h:186:37: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzGoToFirstFile OF((unzFile file)); ^ src/quazip/unzip.h:192:36: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzGoToNextFile OF((unzFile file)); ^ src/quazip/unzip.h:199:34: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzLocateFile OF((unzFile file, ^ src/quazip/unzip.h:231:42: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file, ^ src/quazip/unzip.h:257:39: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzOpenCurrentFile OF((unzFile file)); ^ src/quazip/unzip.h:263:47: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file, ^ src/quazip/unzip.h:271:40: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file, ^ src/quazip/unzip.h:284:40: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file, ^ src/quazip/unzip.h:299:40: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzCloseCurrentFile OF((unzFile file)); ^ src/quazip/unzip.h:305:39: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzReadCurrentFile OF((unzFile file, ^ src/quazip/unzip.h:319:32: σφάλμα: expected initializer before ‘OF’ extern z_off_t ZEXPORT unztell OF((unzFile file)); ^ src/quazip/unzip.h:324:27: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzeof OF((unzFile file)); ^ src/quazip/unzip.h:329:42: σφάλμα: expected initializer before ‘OF’ extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file, ^ make: *** [obj_rel/mainwindow.o] Error 1 Regards, Christos Gitsis |