Pregunta

I am trying to explore QuaZIP library in my Qt application. I put the quazip.h include in mainwindow.h and in mainwindow.cpp (I get the includes by auto-completion so they are right in regard to subfolders), I put quazip.h among headers in the PRO file. But if I try to consume the QuaZip class in mainwindow code I get "undefined reference to" errors when building. What is the problem?

Edit: there is also a "error: undefined reference to `gzopen'" error.

¿Fue útil?

Solución

You also need to link against the library in your .pro file:

LIBS += -lquazip -lz

Otros consejos

Iget error: cannot find -lquazip. I add sources as .pri file.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top