Hi,
I downloaded the precompiled zip file for windows with matlab plugin,
but faced problems while creating the mex file from "nlopt_optimize.c".
I used "mex -v nlopt_optimize.c" and in-built C compiler in MATLAB cites
error in nlopt_optimize.c file:
============================================================================
=============
Error nlopt_optimize.c: .\nlopt.h: 165 missing identifier
Error nlopt_optimize.c: .\nlopt.h: 165 syntax error; found `void' expecting
`;'
Error nlopt_optimize.c: .\nlopt.h: 166 missing identifier
Error nlopt_optimize.c: .\nlopt.h: 166 syntax error; found `void' expecting
`;'
Error nlopt_optimize.c: .\nlopt.h: 168 missing identifier
Error nlopt_optimize.c: .\nlopt.h: 168 syntax error; found `void' expecting
`;'
Error nlopt_optimize.c: .\nlopt.h: 184 redeclaration of `nlopt_opt'
previously declared at .\nlopt.h 179
Error nlopt_optimize.c: .\nlopt.h: 184 syntax error; found `_stdcall'
expecting `;'
Error nlopt_optimize.c: .\nlopt.h: 185 missing identifier
Error nlopt_optimize.c: .\nlopt.h: 185 syntax error; found `void' expecting
`;'
Error nlopt_optimize.c: .\nlopt.h: 186 redeclaration of `nlopt_opt'
previously declared at .\nlopt.h 184
Error nlopt_optimize.c: .\nlopt.h: 186 syntax error; found `_stdcall'
expecting `;'
Error nlopt_optimize.c: .\nlopt.h: 188 redeclaration of `nlopt_result'
previously declared at .\nlopt.h 161
Error nlopt_optimize.c: .\nlopt.h: 188 syntax error; found `_stdcall'
expecting `;'
Error nlopt_optimize.c: .\nlopt.h: 191 redeclaration of `nlopt_result'
previously declared at .\nlopt.h 188
Error nlopt_optimize.c: .\nlopt.h: 191 syntax error; found `_stdcall'
expecting `;'
Error nlopt_optimize.c: .\nlopt.h: 193 redeclaration of `nlopt_result'
previously declared at .\nlopt.h 191
Error nlopt_optimize.c: .\nlopt.h: 193 syntax error; found `_stdcall'
expecting `;'
Error nlopt_optimize.c: .\nlopt.h: 196 redeclaration of `nlopt_algorithm'
previously declared at .\nlopt.h 145
Error nlopt_optimize.c: .\nlopt.h: 196 syntax error; found `_stdcall'
expecting `;'
Error nlopt_optimize.c: .\nlopt.h: 197 too many errors
C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Compile of 'nlopt_optimize.c'
failed.
??? Error using ==> mex at 218
Unable to complete successfully.
============================================================================
===================
Am I missing some intermediate steps?
Thanks for your help.
Regards,
Kaushik
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss