Need help for "error using -mex file"

Hi all,
I get the following error when trying to run a file written in C language :
Error using mex
matlab_interface.c
C:\Users\reach\Desktop\Thesis\Thesis\SoftManipulatorDynamics-master\dynamics.h(4): fatal error C1083:
Cannot open include file: 'gsl/gsl_matrix.h': No such file or directory
Any help would be appreciated.
Thank you

 採用された回答

Jan
Jan 2021 年 5 月 12 日
編集済み: Jan 2021 年 5 月 12 日

0 投票

The message means, that the subfolder "gsl/" cannot be found. Then provide its base folder by the -I parameter. See: https://www.mathworks.com/help/matlab/ref/mex.html#btw17rw-1-option1optionN
Where is "gsl/gsl_matrix.h"?

1 件のコメント

Ajai Singh
Ajai Singh 2021 年 5 月 12 日
編集済み: Ajai Singh 2021 年 5 月 12 日
Thank you,
The file is here:
C:\MinGW\msys\gsl-2.6\matrix

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2021 年 5 月 12 日

編集済み:

2021 年 5 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by