→ celestialgod: .c檔案沒有function output出去? 08/02 23:24
→ celestialgod: 可能要看一下你的.c檔案怎麼寫 08/02 23:25
→ celestialgod: 有沒有用SEXP 08/02 23:25
→ kk741852963: 我是用 .C() 呼叫 C function 的 08/03 00:09
→ kk741852963: .nz/src.html參考這篇 08/03 00:09
→ celestialgod: 所以你有用R_RegisterCCallable 或是 08/03 00:12
→ celestialgod: useDynLib(test2,chanmat) 08/03 00:13
→ celestialgod: 看了一下Exporting C code那裏 08/03 00:13
→ celestialgod: 感覺要註冊才行 08/03 00:13
→ celestialgod: 因為我都直接用Rcpp處理,所以只能猜測 08/03 00:15
→ celestialgod: 看看有沒有其他板友能回答你 08/03 00:15
→ clickhere: 和export無關.你在R中,用了.C/.Call叫了 chanmat 這個C 08/03 10:26
→ clickhere: 函數,但它並沒有被編在test2.dll中. 08/03 10:27
→ clickhere: 你需要有個 .c 的檔案中有 void chanmat(...){...} 之 08/03 10:28
→ kk741852963: 我再試試看,謝謝各位 08/03 19:17