Need help for "error using -mex file"

4 visualizzazioni (ultimi 30 giorni)
Ajai Singh
Ajai Singh il 12 Mag 2021
Modificato: Ajai Singh il 12 Mag 2021
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

Risposta accettata

Jan
Jan il 12 Mag 2021
Modificato: Jan il 12 Mag 2021
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 Commento
Ajai Singh
Ajai Singh il 12 Mag 2021
Modificato: Ajai Singh il 12 Mag 2021
Thank you,
The file is here:
C:\MinGW\msys\gsl-2.6\matrix

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Write C Functions Callable from MATLAB (MEX Files) in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by