关于vc调用matlab生成的dll失败的问题

我将.m文件生成了dll,并且把对应的.dll、lib和.h文件拷到了vc工程目录下准备调用,但是出现了问题,我现在有以个小的进行图像处理的系统,出错如下:
ompiling...
ImageClassificationView.cpp
d:/matlab6p5/extern/include/matrix.h(480) : error C2143: syntax error : missing ')' before 'constant'
d:/matlab6p5/extern/include/matrix.h(480) : error C2143: syntax error : missing ';' before 'constant'
d:/matlab6p5/extern/include/matrix.h(480) : fatal error C1004: unexpected end of file found
Generating Code...
Compiling...
ImageClassification.cpp
Generating Code...
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file './Debug/ImageClassificationView.sbr': No such file or directory
Error executing bscmake.exe.

ImageClassification.exe - 4 error(s), 0 warning(s)


另外我们还有个大的图像处理平台,如果把代码加到里面去,就会出现这样的错误:
Compiling...
ReadinView.cpp
Automatically linking with SkinPlusPlusDLL.dll
Linking...
ReadinView.obj : error LNK2001: unresolved external symbol _mclGetPr
ReadinView.obj : error LNK2001: unresolved external symbol _mclCreateDoubleMatrix
Debug/Readin.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Creating browse info file...

Readin.exe - 3 error(s), 0 warning(s)

我自己为了验证,重新作了一个工程是没有问题,可以运行的,关键是现在必须要加到这两个系统中去,好几天了找不出错误的原因呢,大家帮帮我啊,我感激不尽呢,可以给我发邮件cuiping2005@163.com,也可以加我QQ:26625563,谢谢大家阿,帮帮忙阿,谢谢![

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值