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.
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.
Steven
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss