필터 지우기
필터 지우기

undefined function error despite 'matrix.h' header linked already

조회 수: 5 (최근 30일)
Md Tahmid Hossain
Md Tahmid Hossain 2018년 5월 7일
답변: Sid Jhaveri 2018년 5월 10일
I am trying to build a mex file from C source code. my mexutils.c code contains a function call to bool mxIsDouble(const mxArray *pa); which is declared in matrix.h and is already included in mexutils.c. But while compiling with mex, it says undefined function. another structure that's declared in matrix.h is recognized in mexutils.h i.e. the header is surely found. This is making me confused. please help. I am using win64, Matlab 2016a.
  댓글 수: 4

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

답변 (1개)

Sid Jhaveri
Sid Jhaveri 2018년 5월 10일
Hi,
Try using #include "matrix.h" instead of #include<matrix.h>.

카테고리

Help CenterFile 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!

Translated by