MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB混合编程] 用mcc生成的xxx.h文件中函数是无返回值??? (https://www.labfans.com/bbs/showthread.php?t=9701)

dofwy 2009-09-18 10:25

用mcc生成的xxx.h文件中函数是无返回值???
 
环境:matlab7.0 vc6.0
test.m如下:
function [sum, prod]=test(x,y)
sum = x+y;
prod = x*y;
///////////////////////
mcc -B cpplib:testlib -T link:lib test.m生成testlib.dll testlib.h…等文件,


现在问题是我的函数是有返回值的,而再生成的testlib.h中却出现
extern void mlxTest(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[]);


extern void mlfTest(int nargout, mxArray** sum, mxArray** prod
, mxArray* x, mxArray* y);
/////////////////////////
mlftest是无返回值的??
我现在要取mlftest的值………………


谢谢各位大侠…………


所有时间均为北京时间。现在的时间是 10:17

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.