I'm getting sick of my compiler...
-
Hey!
The last days I got only depressed when I saw "undefined reference". I couldn't work on my project further cuz of these sick-making errors. These "undefined reference" errors occured when I wanted to bind in QuaZip as well as this (https://github.com/kuba--/zip).
Could someone help me? I think that this is the fault of my MinGW 64-bit compiler, that im using but even when I tried to use MSVC2017, it didn't work either.
-
Hi,
What exact error do you have ?
How did you install Quazip ? -
Hi
I also tried that QuaZip and it would not use the .a or .a.dll files i got from downloading
zlib-1.2.3.exe. They seem to be old MSVC files and not compatible with vs 2015/17
or mingw.
They are from 2005 so i guess that is why.However, for Kuba zip
i added the zip.h and miniz.h and zip.c
to the project
and then it worked.
Docs just say
" So, you can grab these 3 files and compile them into your project. "and that should be it.
-
@SGaist I just get > 100 undefined reference errors. I've tried literally all, what I've seen on the internet. I've downloaded the source of QuaZip, binded in the .pri of this library and also linked zlib - one time the internal zlib and the other time ive installed zlib on my system and linked it. And nothing literally works. I need a decent tutorial I guess and there is no tutorial out there.
-
@FluentCoding
That is very odd as there is nothing else to do than adding 3 files to the project.
I just unzipped kuda zip to a subfolder called zip
in the project folder and then added those files from src to the project -
@mrjj Yo, I did literally the same. And I added the files by pressing "add existing files" when right clicking the project item on the left side (just adds the sources and headers). That's why I'm thinking that my compiler or QT is broken af.
-
@FluentCoding
Ok, i just tried again to be sure i didn't do anything extra.can you try the test project ?
https://www.dropbox.com/s/thi3csp5mdvazdy/testKuda.zip?dl=0As it sounds like we are doing same thing so lets see if my project refuse to compile as then we know :)
-
@mrjj Thanks for the example project. Should I set a kit?
-
@FluentCoding
yes, normally it ask you to do that when no .user file.
but yes, select a compiler. a Desktop one. -
@FluentCoding
Hi
there are only those files so that should not matter.
if my sample can work , yours should too :=)
Still same compiler , yes ? -
Nvm that didn't help. Weird...
-
Hi
Those are generated by Qt but not use as such for this example.What compiler are you using ?
anyway, try a clean GUI project you generate with the wizard.
then add those 3 files to it and see. -
That's the weirdest problem I ever ran into. I'm using the same compiler in both my and the sample project - my .pro is literally the same - and I've imported the library exactly like in the sample project. But I still get these "Undefined Reference" errors. I'm totally confused. Can someone help me?
-
@mrjj `The same in both projects: MinGW 64-bit. Even same path - all equal.
anyway, try a clean GUI project you generate with the wizard. then add those 3 files to it and see.
I don't think that I have to do this tbh when the sample project works :/
-
@FluentCoding
Hi
That sounds almost impossible as only way would to not include the .c file. o.O
There is no lib or anything. just 3 files.Im out of ideas. your Qt is not broken since my sample works so
im not sure how on earth it can fail to compile those files. -
Yeah, thats totally weird. Maybe a bug or something similar, dunno :( Maybe this bug is the reason why no library could have been imported. I'll rebuild it.