[討論] 請問關於轉換mexw32的error問題已回收

看板MATLAB作者 (天天都在咪挺了沒)時間15年前 (2011/03/02 21:39), 編輯推噓0(004)
留言4則, 2人參與, 最新討論串1/1
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
mexglx => linux 用, mexa64 => linux 64bit 用...
03/08 14:11, 2F

03/08 14:12, , 3F
所以想直接轉成 win32 基本上辦不到.
03/08 14:12, 3F

03/12 13:19, , 4F
感謝您
03/12 13:19, 4F
文章代碼(AID): #1DRaYa1y (MATLAB)