[Speex-dev] [PATCH] Add Visual Studio 2008 Prject files

Alexander Chemeris Alexander.Chemeris at sipez.com
Wed Dec 5 00:47:25 PST 2007

On 12/4/07, Mikael Magnusson <mikma264 at gmail.com> wrote:
> Yes, you can add a DEF file to the linker arguments to select the
> symbols to export (-Wl,$(srcdir)/speex.def).

Could you add this to your patch for MinGW? libspeex.def and
libspeexdsp.def are in $(srcdir)/win32/ dir. It would be a good
thing to do.

> Another method is using function attributes, __declspec(dllexport) or
> __attribute__ ((dllexport)).

This is a bad behaviour, as you have to distinguish beween dll imported
and static lib imported symbols in user program. That is you could not just
replace dll-import libspeex.lib with static libspeex.lib - you will also need to
change included .h files (or add appropriate define). Not a big trouble,
but make things less resistant  to human errors.

Alexander Chemeris.

SIP VoIP, IM and Presence Consulting
tel: +1 (617) 273-4000

More information about the Speex-dev mailing list