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

답변 (1개)

Jan
Jan 2012년 5월 24일

0 개 추천

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

wei
wei 2012년 5월 24일
thank you. I try to use matlab2011b, and everything is fine.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

질문:

wei
2012년 5월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by