matlab与VC++混合编程之疑难篇(不断更新)

1. 找不到libmatpm.lib

问题:编译opencv的matlab接口出现链接错误:找不到libmappm.lib。装的 matlab 7( R14SP2)。

解答:Release 14的matlab的matlab complier版本是4。Matlab的帮助中有“Differences Between Release 14 and Previous Versions of the MATLAB Compiler”有这个版本和前版本的区别。它说

Compiler 4 uses the new MATLAB Component Runtime (MCR), which is a stand-alone set of shared libraries that enable the execution of compiled M-files, instead of the MATLAB C/C++ Math and Graphics Libraries.

Since Compiler 4 does not use the MATLAB C/C++ Math and Graphics Libraries, the various mlf functions previously available with the libraries are no longer available. Some of the Release 13 mlf functions have Release 14 equivalents in the MATLAB External Interface functions. For example, you can replace calls to mlfScalar with calls to mxCreateDoubleScalar.

libmatpm.lib是个数学库,这个库上面说了,从R14开始已经不用了,所以会出链接问题。

具体编程问题参见matlab compiler的文档。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值