zlib under Qt5
-
I have a program originally developed under Qt4 which used zlib.
I have in the *.PRO file a line stating
LIBS += libz.a
which links the zLibWhile compiling the same project under Qt5 I get
***.cpp:-1: error: undefined reference to 'inflate'
I compile it in Windows with MingW.
I can compile the same project in Linux and ARM in Qt5.How comes?
How to resolve? - (I can't use qCompress/qUncompress as I'm reading ZIP compressed files) -
I have a program originally developed under Qt4 which used zlib.
I have in the *.PRO file a line stating
LIBS += libz.a
which links the zLibWhile compiling the same project under Qt5 I get
***.cpp:-1: error: undefined reference to 'inflate'
I compile it in Windows with MingW.
I can compile the same project in Linux and ARM in Qt5.How comes?
How to resolve? - (I can't use qCompress/qUncompress as I'm reading ZIP compressed files)While compiling the same project under Qt5 I get
***.cpp:-1: error: undefined reference to 'inflate'
Can you confirm you get this error while compiling, not linking? If it's while compiling it would be a header file issue, not a library.
-
While compiling the same project under Qt5 I get
***.cpp:-1: error: undefined reference to 'inflate'
Can you confirm you get this error while compiling, not linking? If it's while compiling it would be a header file issue, not a library.