Steven G. Johnson <stevenj....@...> writes:

> 
> 
> 
> On Jul 29, 2010, at 10:24 PM, Benoit Scherrer wrote:
> 
> 
> Also, i didn't found any dllexport in the original source code.
> 
> (These import/export keywords are not needed for compiling a DLL from 
MingW/gcc.)
> 
> 
>     #ifdef NLOPT_EXPORT  
>               #define NLOPT_EXTERN(T) __declspec(dllexport) T NLOPT_STDCALL 
> 
> 
> Is there some reason you need to omit the "extern" keyword here?
> 
> I'll add an ifdef like this to the next release, although I think I'll call 
> it 
NLOPT_DLL_EXPORT for consistency.

no no you're right i forgot the extern (although it's compiling...)
and yes NLOPT_DLL_EXPORT would be better
 
> I checked it seems to compile (it does create a dll).
> didn't tried the shared option on linux yet....
> 
> 
> 
> I wouldn't worry about GNU/Linux and Unix systems, as those systems can use 
the standard configure script and Makefile, which can already create shared 
libraries.

ok ok! (although i m pretty sure it will also work with the cmake,
i don't see any reason why it wouldn't)

> Steven
> 





_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to