How do you include Arduino.h when using mex to compile C code?
7 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to follow the tutorial above but when I attempt to use mex I get the error below.
Error using mex
/home/USERNAME/Documents/Source/digitalio_arduino.cpp:1:21: fatal error: Arduino.h: No
such file or directory
compilation terminated.
What do I have to do to get Arduino.h to mex?
I'm using Ubuntu 16.04.
1 件のコメント
dpb
2018 年 8 月 22 日
When set up mex the include directory is defined; need to put the file wherever that is on your system.
回答 (1 件)
Tristan Yang
2018 年 8 月 24 日
You may specify the header file path with MEX using the -I option. See this post:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler SDK についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!