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

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 件のコメント

James Tursa
James Tursa 2018 年 5 月 7 日
Please show a minimum code example that reproduces your problem, and the compiling command(s) you are using.
Md Tahmid Hossain
Md Tahmid Hossain 2018 年 5 月 8 日
<<
<<
>>
>>
Md Tahmid Hossain
Md Tahmid Hossain 2018 年 5 月 8 日
Md Tahmid Hossain
Md Tahmid Hossain 2018 年 5 月 8 日

サインインしてコメントする。

回答 (1 件)

Sid Jhaveri
Sid Jhaveri 2018 年 5 月 10 日

0 投票

Hi,
Try using #include "matrix.h" instead of #include<matrix.h>.

カテゴリ

ヘルプ センター および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

質問済み:

2018 年 5 月 7 日

回答済み:

2018 年 5 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by