Answer the question
In order to leave comments, you need to log in
MinGW: what is the _imp__ prefix and how to get rid of it?
I tried to statically compile libZip using Qt Creator. The library appeared, was found out, when I tried to connect it to the program, this is what happened.
C:\Mercury\Common\StaxLike\StaxZip.cpp:14: error: undefined reference to `_imp__zip_wopen'
C:\Mercury\Common\StaxLike\StaxZip.cpp:36: error: undefined reference to `_imp__zip_close'
Answer the question
In order to leave comments, you need to log in
Again, you have to answer yourself. I have three mistakes.
Once.
//#define ZIP_EXTERN __declspec(dllimport)
#define ZIP_EXTERN
Obviously, libzip is only meant to be compiled into a DLL, period. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question