Menu

#8 QuaZIP in-source build

closed
nobody
None
5
2011-08-23
2011-08-23
Darktib
No

When we are building QuaZIP by adding sources and header to the project, the Q_DECL_EXPORT is defined and causes warning.

The solution is simple, replace:

#if defined(QUAZIP_BUILD)
#define QUAZIP_EXPORT Q_DECL_EXPORT
#else
#define QUAZIP_EXPORT Q_DECL_IMPORT
#endif

by:

#if defined(QUAZIP_LIB) // or anything else for the name, here QUAZIP_LIB stands for 'I am using QuaZIP compiled as a library'
// the previous code
#else
#define QUAZIP_EXPORT
#endif

in quazip_global.h
Anyway, QuaZIP is a really good library, keep the good work!

Discussion

  • Sergey A. Tachenov

    • status: open --> closed
     
  • Sergey A. Tachenov

    It's already fixed in the SVN trunk, but it's done the other way around - you need to define QUAZIP_STATIC when using QuaZIP statically - either as source code or as a static library. It will be in the 0.4.2, which should be released pretty soon.