Compiling kdepimlibs on win32 msvc

Jarosław Staniek js at iidea.pl
Thu Oct 26 22:26:31 CEST 2006


Paulo Jorge Guedes said the following, On 2006-10-26 19:19:

> There is a problem with KABC_DIR_EXPORT. When building
> kabc/plugins/dir/* it should be exporting and not importing. 
> The other
> macros are properly defined (like KABC_EXPORT in kabc/kabc.h) and by
> doing so it fixes the error (C2491). 
> My question is where KABC_DIR_EXPORT is being defined?

In kdelibs/kdelibs_export_win.h

#ifndef KABC_DIR_EXPORT
# ifdef MAKE_KABC_DIR_LIB
#  define KABC_DIR_EXPORT KDE_EXPORT
# else
#  define KABC_DIR_EXPORT KDE_IMPORT
# endif
#endif

MAKE_KABC_DIR_LIB controls whether KABC_DIR_EXPORT means import or export. 
Maybe there's something wrong with MAKE_KABC_DIR_LIB?

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice: http://www.kexi-project.org, http://www.koffice.org
  KDE3 & KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org



More information about the Kde-windows mailing list