how to solve that Error using ==> mex
Mostrar comentarios más antiguos
I use a package somebady made. But I can't mex it. Could you throw some light on it as to why it is happening?
Thanks in advance
======================================
Compiling ompmex... Error ompmex.c: .\ompcore.h: 77 missing parameter type
Error ompmex.c: .\ompcore.h: 77 syntax error; found `n' expecting `)'
Error ompmex.c: .\ompcore.h: 77 skipping `n' `,' `mwSize' `m' `,' `mwSize' `L' `,'
Error ompmex.c: .\ompcore.h: 78 syntax error; found `int' expecting `{'
Error ompmex.c: .\ompcore.h: 78 missing identifier
Error ompmex.c: .\ompcore.h: 78 syntax error; found `double' expecting `;'
Error ompmex.c: .\ompcore.h: 78 missing identifier
Error ompmex.c: .\ompcore.h: 78 syntax error; found `int' expecting `;'
Error ompmex.c: .\ompcore.h: 78 missing identifier
Error ompmex.c: .\ompcore.h: 78 syntax error; found `int' expecting `;'
Error ompmex.c: .\ompcore.h: 78 missing identifier
Error ompmex.c: .\ompcore.h: 78 syntax error; found `double' expecting `;'
Error ompmex.c: .\ompcore.h: 78 missing identifier
Error ompmex.c: .\ompcore.h: 78 syntax error; found `int' expecting `;'
Error ompmex.c: .\ompcore.h: 78 syntax error; found `)' expecting `;'
Error ompmex.c: .\ompcore.h: 78 skipping `)'
Error ompmex.c: 40 syntax error; found `{' expecting `;'
Error ompmex.c: 40 skipping `{'
Error ompmex.c: 41 redeclaration of `D' previously declared at .\ompcore.h 77
Error ompmex.c: 41 redeclaration of `x' previously declared at .\ompcore.h 77
Error ompmex.c: 41 too many errors
E:\PROGRAM FILES\MATLAB71\BIN\MEX.PL: Error: Compile of 'ompmex.c' failed.
??? Error using ==> mex Unable to complete successfully
Error in ==> ompbox\private\make at 37 mex('ompmex.c', ompsources{:},compile_params{:});
===========================
Respuestas (1)
Jan
el 24 de Mayo de 2012
0 votos
Thjere is either a bug or a not recognized feature in ompcore.h, line 77.
- Read this line and try to find the problem.
- Ask the author for assistence.
- If still not successful, post the relevant part of the code here. Please add this by editing the original question, not as comment or answer.
1 comentario
wei
el 24 de Mayo de 2012
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!