rm -f ./unzip.o libunzip.so # remove all objective files and the outfile rm -f .depend # remove the dependfile g++ -ansi -Wall -g -D__LINUX__ -I../../libodf/ -c ./unzip.cpp -o ./unzip.o In file included from ./unzip.h:31, from ./unzip.cpp:28: ./zipentry.h:38: error: ‘uint4’ does not name a type ./zipentry.h:40: error: ‘uint2’ does not name a type ./zipentry.h:43: error: ‘uint4’ does not name a type ./zipentry.h:44: error: ‘uint4’ does not name a type ./zipentry.h:45: error: ‘uint4’ does not name a type In file included from ./unzip.cpp:29: ./unzip_p.h:66: error: ISO C++ forbids declaration of ‘uint4’ with no type ./unzip_p.h:66: error: expected ‘;’ before ‘*’ token ./unzip_p.h:73: error: ‘uint4’ does not name a type ./unzip_p.h:80: error: ‘uint4’ has not been declared ./unzip_p.h:81: error: ‘uint4’ has not been declared ./unzip_p.h:85: error: ‘uint4’ has not been declared ./unzip_p.h:85: error: ‘sint8’ has not been declared ./unzip_p.h:87: error: ‘uint4’ does not name a type ./unzip_p.h:88: error: ‘uint8’ does not name a type ./unzip_p.h:89: error: ‘uint2’ does not name a type ./unzip_p.h:90: error: ‘uint4’ has not been declared ./unzip_p.h:91: error: ‘uint4’ has not been declared ./unzip_p.h:92: error: ‘uint4’ has not been declared ./unzip.cpp: In member function ‘UnZip::ErrorCode UnZip::openArchive(const char*)’: ./unzip.cpp:148: error: ‘t_access’ was not declared in this scope ./unzip.cpp:151: error: ‘t_fopen’ was not declared in this scope ./unzip.cpp:156: error: ‘t_fclose’ was not declared in this scope ./unzip.cpp: In constructor ‘UnzipPrivate::UnzipPrivate()’: ./unzip.cpp:343: error: ‘crcTable’ was not declared in this scope ./unzip.cpp:343: error: ‘uint4’ was not declared in this scope ./unzip.cpp:343: error: expected primary-expression before ‘)’ token ./unzip.cpp:343: error: expected ‘;’ before ‘get_crc_table’ ./unzip.cpp: In member function ‘UnZip::ErrorCode UnzipPrivate::openArchive(FILE*)’: ./unzip.cpp:373: error: ‘t_fread’ was not declared in this scope ./unzip.cpp:430: error: ‘getULLong’ was not declared in this scope ./unzip.cpp:430: error: ‘t_fseek’ was not declared in this scope ./unzip.cpp:436: error: ‘t_fseek’ was not declared in this scope ./unzip.cpp: In member function ‘bool UnzipPrivate::parseLocalHeader()’: ./unzip.cpp:466: error: ‘t_fread’ was not declared in this scope ./unzip.cpp:470: error: ‘uint4’ was not declared in this scope ./unzip.cpp:470: error: expected ‘;’ before ‘offset’ ./unzip.cpp:472: error: ‘uint2’ was not declared in this scope ./unzip.cpp:472: error: expected ‘;’ before ‘compMethod’ ./unzip.cpp:481: error: ‘class ZipEntry’ has no member named ‘compMethod’ ./unzip.cpp:481: error: ‘compMethod’ was not declared in this scope ./unzip.cpp:492: error: ‘class ZipEntry’ has no member named ‘crc’ ./unzip.cpp:492: error: ‘getULong’ was not declared in this scope ./unzip.cpp:493: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:494: error: ‘class ZipEntry’ has no member named ‘szUncomp’ ./unzip.cpp:501: error: ‘compMethod’ was not declared in this scope ./unzip.cpp:542: error: ‘class ZipEntry’ has no member named ‘zoffset’ ./unzip.cpp:543: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:548: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:548: error: ‘getNextSignature’ was not declared in this scope ./unzip.cpp:557: error: ‘offset’ was not declared in this scope ./unzip.cpp:557: error: ‘class ZipEntry’ has no member named ‘zoffset’ ./unzip.cpp:557: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:584: error: ‘class ZipEntry’ has no member named ‘crc’ ./unzip.cpp:584: error: ‘getULong’ was not declared in this scope ./unzip.cpp:585: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:586: error: ‘class ZipEntry’ has no member named ‘szUncomp’ ./unzip.cpp: At global scope: ./unzip.cpp:609: error: ‘uint4’ does not name a type ./unzip.cpp: In member function ‘bool UnzipPrivate::parseCentralDirectory()’: ./unzip.cpp:672: error: ‘t_fread’ was not declared in this scope ./unzip.cpp:686: error: ‘t_fseek’ was not declared in this scope ./unzip.cpp:721: error: ‘class ZipEntry’ has no member named ‘compMethod’ ./unzip.cpp:721: error: ‘getUShort’ was not declared in this scope ./unzip.cpp:723: error: ‘class ZipEntry’ has no member named ‘crc’ ./unzip.cpp:723: error: ‘getULong’ was not declared in this scope ./unzip.cpp:725: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:727: error: ‘class ZipEntry’ has no member named ‘szUncomp’ ./unzip.cpp: In member function ‘UnZip::ErrorCode UnzipPrivate::extractFile(std::_Rb_tree_iterator, std::allocator >, ZipEntry> >&, const char*)’: ./unzip.cpp:861: error: ‘t_fclose’ was not declared in this scope ./unzip.cpp: In member function ‘UnZip::ErrorCode UnzipPrivate::extractFile(std::_Rb_tree_iterator, std::allocator >, ZipEntry> >&, FILE*)’: ./unzip.cpp:879: error: ‘class ZipEntry’ has no member named ‘zoffset’ ./unzip.cpp:888: error: ‘uint4’ was not declared in this scope ./unzip.cpp:888: error: expected ‘;’ before ‘keys’ ./unzip.cpp:892: error: ‘keys’ was not declared in this scope ./unzip.cpp:899: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:902: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:904: error: ‘class ZipEntry’ has no member named ‘crc’ ./unzip.cpp:912: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:913: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:917: error: ‘sint8’ was not declared in this scope ./unzip.cpp:917: error: expected ‘;’ before ‘read’ ./unzip.cpp:918: error: ‘uint8’ was not declared in this scope ./unzip.cpp:918: error: expected ‘;’ before ‘tot’ ./unzip.cpp:920: error: expected ‘;’ before ‘myCRC’ ./unzip.cpp:922: error: ‘class ZipEntry’ has no member named ‘compMethod’ ./unzip.cpp:925: error: assignment of function ‘ssize_t read(int, void*, size_t)’ ./unzip.cpp:925: error: cannot convert ‘size_t’ to ‘ssize_t(int, void*, size_t)’ in assignment ./unzip.cpp:928: error: ‘keys’ was not declared in this scope ./unzip.cpp:930: error: ‘myCRC’ was not declared in this scope ./unzip.cpp:932: error: invalid conversion from ‘ssize_t (*)(int, void*, size_t)’ to ‘size_t’ ./unzip.cpp:932: error: initializing argument 3 of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’ ./unzip.cpp:932: error: ISO C++ forbids comparison between pointer and integer ./unzip.cpp:940: error: ‘tot’ was not declared in this scope ./unzip.cpp:942: error: ‘class ZipEntry’ has no member named ‘szComp’ ./unzip.cpp:952: error: ‘class ZipEntry’ has no member named ‘compMethod’ ./unzip.cpp:976: error: assignment of function ‘ssize_t read(int, void*, size_t)’ ./unzip.cpp:976: error: cannot convert ‘size_t’ to ‘ssize_t(int, void*, size_t)’ in assignment ./unzip.cpp:977: warning: the address of ‘ssize_t read(int, void*, size_t)’ will never be NULL ./unzip.cpp:987: error: ‘keys’ was not declared in this scope ./unzip.cpp:990: error: ‘tot’ was not declared in this scope ./unzip.cpp:1020: error: ‘myCRC’ was not declared in this scope ./unzip.cpp:1030: error: ‘myCRC’ was not declared in this scope ./unzip.cpp:1030: error: ‘class ZipEntry’ has no member named ‘crc’ ./unzip.cpp: In member function ‘bool UnzipPrivate::createDirectory(const char*)’: ./unzip.cpp:1057: error: ‘t_access’ was not declared in this scope ./unzip.cpp: At global scope: ./unzip.cpp:1072: error: ‘uint4’ does not name a type ./unzip.cpp:1085: error: ‘uint8’ does not name a type ./unzip.cpp:1103: error: ‘uint2’ does not name a type ./unzip.cpp:1111: error: ‘int UnzipPrivate::decryptByte’ is not a static member of ‘class UnzipPrivate’ ./unzip.cpp:1111: error: ‘uint4’ was not declared in this scope ./unzip.cpp:1111: error: expected ‘,’ or ‘;’ before ‘const’ ./unzip.cpp:1120: error: variable or field ‘updateKeys’ declared void ./unzip.cpp:1120: error: ‘uint4’ was not declared in this scope ./unzip.cpp:1120: error: ‘keys’ was not declared in this scope ./unzip.cpp:1120: error: expected primary-expression before ‘int’ ./unzip.cpp:1132: error: ‘uint4’ has not been declared ./unzip.cpp:1154: error: ‘UnZip::ErrorCode UnzipPrivate::testPassword’ is not a static member of ‘class UnzipPrivate’ ./unzip.cpp:1154: error: ‘uint4’ was not declared in this scope ./unzip.cpp:1154: error: ‘keys’ was not declared in this scope ./unzip.cpp:1154: error: expected primary-expression before ‘const’ ./unzip.cpp:1154: error: expected primary-expression before ‘const’ ./unzip.cpp:1154: error: initializer expression list treated as compound expression ./unzip.cpp:1155: error: expected ‘,’ or ‘;’ before ‘{’ token ./unzip.cpp:1173: error: ‘uint4’ has not been declared ./unzip.cpp: In member function ‘bool UnzipPrivate::testKeys(const ZipEntry&, int*)’: ./unzip.cpp:1184: error: ‘const class ZipEntry’ has no member named ‘crc’ ./unzip.cpp: At global scope: ./unzip.cpp:1192: error: variable or field ‘decryptBytes’ declared void ./unzip.cpp:1192: error: ‘uint4’ was not declared in this scope ./unzip.cpp:1192: error: ‘keys’ was not declared in this scope ./unzip.cpp:1192: error: expected primary-expression before ‘char’ ./unzip.cpp:1192: error: ‘sint8’ was not declared in this scope ./unzip_p.h:85: warning: inline function ‘void UnzipPrivate::decryptBytes(int*, char*, int)’ used but never defined ./unzip_p.h:91: warning: inline function ‘void UnzipPrivate::updateKeys(int*, int) const’ used but never defined ./unzip_p.h:90: warning: inline function ‘int UnzipPrivate::decryptByte(int) const’ used but never defined make: *** [unzip.o] Error 1