Use Matlab though C++

0. Environment

Windows 8.1 Pro x64

Matlab R2013a 32-bit (installed in "F:\ProgramFiles_x86\MATLAB\R2013a")

Visual Studio 2012 x86

1. Steps

1.1 Creat a project

1.2 "Properties" - "Configuration Properties" - "VC++ Directories" - "Include Directories"
Add "F:\ProgramFiles_x86\MATLAB\R2013a\extern\include"

1.3 "Properties" - "Configuration Properties" - "VC++ Directories" - "Library Directories"
Add "F:\ProgramFiles_x86\MATLAB\R2013a\extern\lib\win32\microsoft"

1.4 "Properties" - "Configuration Properties" - "Linker" - "Input" - "Additional Dependencies"
Add "libeng.lib" and "libmx.lib"

2. References

http://www.cnblogs.com/yingying0907/archive/2012/09/27/2705048.html

(This article is from http://www.cnblogs.com/chenyineng/p/3500665.html, and belongs to http://chenyineng.cnblogs.com and http://www.chenyineng.info)

posted @ 2014-01-01 15:57  Yineng  阅读(405)  评论(0编辑  收藏  举报
Homepage: www.chenyineng.info
Copyright 2010 - 2014 Yineng Chen. All rights reserved.