Menu

#11 quagzipfile.o: undefined reference to symbol 'gzdopen'

v1.0_(example)
open
nobody
None
5
2014-10-31
2014-10-30
rovshan
No

Hi, I'm sorry for disturbing you. I downloaded quazip 0.7 and it built successfully in Qt Creator. Then I copied its sources into my project and defined QUAZIP_STATIC in pro file. Now when building I get following error: :-1: error: quagzipfile.o: undefined reference to symbol 'gzdopen'

I'm using Linux Mint 17 KDE version, 64 bit.
GCC version is: gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2.

I remember that when using previous version of OS and GCC and quazip (Ubuntu 12.04, quazip 0.5.x or 0.6.x) it was building without problems.

Could you please, help me with this problem?

Thank you very much in advance!

Discussion

  • rovshan

    rovshan - 2014-10-30

    I added this line to pro file:

    unix:LIBS += -L/lib/x86_64-linux-gnu/ -lz

    Now getting following 3 errors:

    error: undefined reference to unzOpenInternal' error: undefined reference tounzSetFlags'
    error: undefined reference to `unzClearFlags'

    But these 3 functions are defined inside unzip.c which is included into project

     
  • Sergey A. Tachenov

    Can you attach the whole build output? After full clean, of course.

     
  • rovshan

    rovshan - 2014-10-31

    Hi, after full clean it built successfully!!! :-))

    Thank you very much!!!