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
2012년 5월 24일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!