我将.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,谢谢大家阿,帮帮忙阿,谢谢![