当前位置:网站首页>Create vs project with MATLAB

Create vs project with MATLAB

2022-04-23 20:37:00 Zhongai0049

union MATLAB establish VS project

vs After creating a new project, first configure the project environment , Steps are as follows :
1. open VS, newly build c++ Empty item ;
2. Configure the project environment , project -> attribute -> Configuration manager , Change to ×64*( The specific selection principle is unknown )*
3…VC++ Catalog -> Contains the directory , Join in E:\matlab\MATLAB\extern\include route ;
4.VC++ Catalog -> The library catalog , Join in E:\matlab\MATLAB\extern\lib\win64\microsoft;
5. The linker -> Input -> Additional dependency , add to libeng.lib;libmat.lib;libmex.lib;libmx.lib;mclmcrrt.lib;mclmcr.lib;FFV1MT.lib, The last one is that we do what needs to be combined matlab Generated by program packaging lib file
6.MATLBA Generated by program packaging .h and .lib and .dll Copy the three files to the file path of the project ;
7. To write main.cpp file , Run the program , Completion of invocation matlab Function of .( The specific method of writing the main function needs to be supplemented )

版权声明
本文为[Zhongai0049]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210547163219.html