Visual Studio property sheets for rapidly configuring a project to build a MEX file.
The usage of the property sheets (.props files) is described at http://stackoverflow.com/a/27391300/2778484. In short, just set the `MATLAB_ROOT` and/or `MATLAB32_ROOT` environment variables (for 32-bit and 64-bit versions, respectively), and include the property sheet (MATLAB.props) into your DLL project:
![add MEX property sheet to Visual Studio project](http://i.stack.imgur.com/pnmDB.png)
The relevant settings configured automatically by the property sheet include:
1. Adding `$(MATLAB_ROOT)\extern\include` to the `AdditionalIncludeDirectories` paths (with inherited paths from parent configurations) -- the location of mex.h.
2. Adding `$(MATLAB_ROOT)\extern\lib\win64\microsoft` to the `AdditionalLibraryDirectories` paths -- the location of libmex.lib, etc.
3. Listing the libraries: `libut.lib;libmx.lib;libmex.lib;libmat.lib`.
4. Exporting `mexFunction` (it's a shared library): `/EXPORT:mexFunction`.
5. Setting the output file extention (e.g. `.mexw64` for x64).
6. Sets MATLAB_MEX_FILE (helpful to signal to your own headers if they are being used in a MEX file).
7. Turns on generation of data required for profiling.
The files MATLABx64.props and MATLABx86.props are for 64-bit and 32-bit MATLAB, respectively. MATLAB.props is supposed to work for either 32-bit or 64-bit MATLAB using conditional expressions, but I have not tested it extensively.
Matlab仿真实验室
- 粉丝: 4w+
- 资源: 2449
最新资源
- iPicker-javascript
- 十字形声子晶体能带及传输特性
- comfyui-comfyui
- JeeSite Vue3-vue
- gitschool-linux常用命令大全
- cdroid-android
- PrimiHub-git命令
- dynamic-tp-can
- rubygem-rbvmomi-vmware
- gtmsAutoTestProject-conda创建新环境
- PhalApi-sql server
- 分布式驱动电动汽车十四自由度动力学模型综合了车辆的操纵模型和平顺模型,自由度包括四个车轮的垂向跳动和四个车轮绕旋转轴线的滚动,车体的六个自由度,包括在车体坐标系内的x,y,z的平动和绕x、y、z轴的翻
- ansys钢管混凝土拱桥建模教程 视频共计200分钟,纯干建模教程,值得科研迷途中的你入手学习 模型介绍:本实例为一下承式钢管混凝土系杆拱桥,跨度125m,拱矢高25m,拱轴系数1.1,拱肋为一哑铃型
- Comsol等离子体仿真,空气棒板电晕放电,23种精简空气反应
- Comsol等离子体仿真,Ar棒板粗通道流注放电 电子密度,电子温度,三维视图,电场强度等 5.5,6.0版本
- 太阳能光伏并网逆变器系统设计,输出与电网同相,输出380v50hz,并网效果良好 最大功率追踪采用电导增量法,前极采用双向boost升压电路,后极三相桥式逆变 控制环采用双环PI调节 逆变器采用三相
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈