扫黄打非净网行动总结:matlab7.0.4中编译mex文件时候出现错误

来源:百度文库 编辑:中科新闻网 时间:2024/05/12 08:04:51
在matlab7.0.4中编译mex文件时候出现错误,请指点一下。

>> mcc -W cpplib:sum1 -T link:lib sum1.m

运行如上语句产生了预期的 dll文件,但是在调用sum1时候却出现如下错误:
>> sum1(1,2)
Mex file entry point is missing. Please check the (case-sensitive)
spelling of mexFunction (for C MEX-files), or the (case-insensitive)
spelling of MEXFUNCTION (for FORTRAN MEX-files).
??? Invalid MEX-file 'd:\Program Files\MATLAB704\work\sum1.dll': 找不到指定的模块。

.

>>
不晓得是哪里出了问题 请指点