How to include library/source files when mexing a C++ function?

Hi, I am trying to mex the facial landmark detection C++ program from the Dlib library. When trying to do so, I run into a problem with the header files and other "include" statements. Since these are part of the original C++ code, what can I add to the C++ function before mexing that would tell the function to look at a particular library, rather than having to point to the header files by using their specific folder addresses?
Thanks

1 件のコメント

Muhammad Islam
Muhammad Islam 2018 年 10 月 3 日
Resolved. There was a syntax issue. Using test.h vs "test.h"

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

回答 (0 件)

カテゴリ

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

タグ

質問済み:

2018 年 10 月 3 日

コメント済み:

2018 年 10 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by