C 一个项目在matlab上的mex实现
我正试图从一个项目中编译C文件 我在win 7上使用matlab R2013aC 一个项目在matlab上的mex实现,c,matlab,mex,C,Matlab,Mex,我正试图从一个项目中编译C文件 我在win 7上使用matlab R2013a >> mser_compile 我收到了以下错误: Creating library C:\Users\Neetika\AppData\Local\Temp\mex_JMN0MS\templib.x and object C:\Users\Neetika\AppData\Local\Temp\mex_JMN0MS\templib.exp erfill.obj : error LNK2019: unre
>> mser_compile
我收到了以下错误:
Creating library C:\Users\Neetika\AppData\Local\Temp\mex_JMN0MS\templib.x and object C:\Users\Neetika\AppData\Local\Temp\mex_JMN0MS\templib.exp
erfill.obj : error LNK2019: unresolved external symbol _snprintf referenced in function _mexFunction
erfill.mexw32 : fatal error LNK1120: 1 unresolved externals
C:\PROGRA~2\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'erfill.mexw32' failed.
Error using mex (line 206)
Unable to complete successfully
Error in mser_compile (line 7)
mex('erfill.mex.c','-output', 'erfill',opts{:}) ;
为了解决erfill.mexw32的链接问题,我尝试了以下命令:
>> mex -O -largeArrayDims mser.mex.c erfill.mex.c
但它再次给了我一个错误的说法:
mser.mex.c
mser.mex.c(40) : fatal error C1083: Cannot open include file: 'mexutils.c': No such file or directory
C:\PROGRA~2\MATLAB\R2013A\BIN\MEX.PL: Error: Compile of 'mser.mex.c' failed.
Error using mex (line 206)
Unable to complete successfully.
请给出解决方案。您使用的是什么编译器?snprintf是一个C99函数,而_snprintf是C89的MSVC扩展,所以很难说。如果您查看文档页面,该MSER代码被认为是不推荐使用的。改为使用vlfeat包中的MSER实现。vlfeat使用预定义函数提供直接实现。是否有其他mser实现?