How can I build application using c++ MATLAB data api in Visual Studio?
조회 수: 27 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2021년 5월 21일
답변: MathWorks Support Team
2021년 5월 21일
I am trying to use MATLAB data api and build applications in VS.
채택된 답변
MathWorks Support Team
2021년 5월 21일
The following properties should be set before building and run:
[1] C/C++ -> General -> Additional Include Directories
<mcr>\v98\extern\include;<mcr>\v98\extern\include\win64
*<mcr>: Installation path of mcr, e.g. C:\Program Files\MATLAB\MATLAB Runtime
[2] Linker -> General -> Additional Library Directories
<mcr>\v98\extern\lib\win64\microsoft
[3] Linker -> Input -> Delay Loaded Dlls
libMatlabDataArray.dll
[4] Add -> Existing items
Add libMatlabCppSharedLib.lib and libMatlabDataArray.lib from <mcr>\v97\extern\lib\win64\microsoft
And you should make sure the .ctf file is in the same directory with .exe before running the program.
You can furthermore refer at the following MATLAB Answer.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!