On Tue, May 6, 2008 at 10:06 AM, Tatsuro MATSUOKA <[EMAIL PROTECTED]> wrote:
> Hello Michael
>  Thank you for your reply.
>
>
>  --- Michael Goffioul <[EMAIL PROTECTED]> wrote:
>  > You need some additional magic in include/ANN.h, because it will try to
>  > compile a DLL by default if WIN32 is defined; hence functions will be
>  > decorated with dllimport/dllexport.
>
>  It would be grateful for me that you will show me an/some example/examples 
> of your magic on msvc
>  octave.

In include/ANN.h around line 60, replace

#ifdef WIN32

with

#if defined(WIN32) && !defined(STATIC_BUILD)

and add -DSTATIC_BUILD to your compilation flags.

Michael.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to