脸上长大痘痘还有浓:matlab7.0.4中编译mex文件时候出现错误

来源:百度文库 编辑:高考问答 时间:2024/05/13 15:51:26
在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': 找不到指定的模块。

.

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