Creating a win32 release

Stefan Gehn mETz81 at web.de
Tue Jul 5 18:16:53 CEST 2005


Next update:

I managed to create a shared library (also known as DLL), one has to 
export symbols for this to work. Right now I have an extra header 
containing:

#ifndef DLLFCT_H
#define DLLFCT_H
#ifdef WIN32
	#ifdef BUILD_DLL
		#define EXPORT __declspec(dllexport)
	#else
		#define EXPORT __declspec(dllimport)
	#endif
#else
	#define EXPORT
#endif
#endif

On creating the DLL you also pass -DBUILD_DLL to export stuff (import is 
needed when you link against taglib, otherwise symbols would get 
exported another time).

I don't like the extra header so what about putting it into taglib.h? 
What about extending this to gcc visibility stuff as well?

Bye, Stefan aka mETz


More information about the taglib-devel mailing list