[討論] 請問關於轉換mexw32的error問題已回收
Select a compiler:
[1] Lcc-win32 C 2.4.1 in D:\PROGRA~1\MATLAB\R2007b\sys\lcc
[2] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio
這兩個是我可以使用的compiler
出現下列錯誤
Error treevalc.c: 112 undeclared identifier `catsplit'
Error treevalc.c: 112 operands of = have illegal types `int' and `pointer to
void'
Error treevalc.c: 114 illegal statement termination
Error treevalc.c: 114 skipping `int'
Error treevalc.c: 114 undeclared identifier `n'
Warning treevalc.c: 114 Statement has no effect
code:
以下code 是//110 line ~ 119 line
nsplits = mxGetNumberOfElements(prhs[4]);
ncatsplit = malloc(sizeof(int) * nsplits);
catsplit = malloc(sizeof(double*) * nsplits);
int n=0;
for (n = 0; n < nsplits; n++) {
mxArray* catsplit_cell_mx = mxGetCell(prhs[4], n);
if (catsplit_cell_mx == 0) {
printf("null cell");
}
請問大家 是哪裡出錯了呢
請益大家 有沒有甚麼解決的辦法
感謝
另外我有個.mexa64 and .mexglx
有沒有甚麼方法可以轉成windows下32-bits使用呢
感謝
--
如有違版版規請告知,原po將立刻刪除此文。
1K3K5K7K9
K2K4K6K8K
阿~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.196.237
※ hohoww:轉錄至看板 C_and_CPP 03/02 21:45
→
03/03 01:23, , 1F
03/03 01:23, 1F
→
03/08 14:11, , 2F
03/08 14:11, 2F
→
03/08 14:12, , 3F
03/08 14:12, 3F
→
03/12 13:19, , 4F
03/12 13:19, 4F