how to solve that Error using ==> mex

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{:});
===========================

Réponses (1)

Jan
Jan le 24 Mai 2012

0 votes

Thjere is either a bug or a not recognized feature in ompcore.h, line 77.
  1. Read this line and try to find the problem.
  2. Ask the author for assistence.
  3. 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 commentaire

wei
wei le 24 Mai 2012
thank you. I try to use matlab2011b, and everything is fine.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange

Tags

Question posée :

wei
le 24 Mai 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by