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

Answers (1)

Jan
Jan on 24 May 2012
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 Comment

thank you. I try to use matlab2011b, and everything is fine.

Sign in to comment.

Categories

Tags

Asked:

wei
on 24 May 2012

Community Treasure Hunt

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

Start Hunting!