0
假設我有功能ABC實施module.cc和我建立module.o,然後用標誌鏈接:Emscripten鏈接器找不到函數,我做錯了什麼?
-s EXPORTED_FUNCTIONS="['_abc']"
我得到這個錯誤:
WARNING root: function requested to be exported, but not implemented: "_abc"
可能是什麼原因?
假設我有功能ABC實施module.cc和我建立module.o,然後用標誌鏈接:Emscripten鏈接器找不到函數,我做錯了什麼?
-s EXPORTED_FUNCTIONS="['_abc']"
我得到這個錯誤:
WARNING root: function requested to be exported, but not implemented: "_abc"
可能是什麼原因?
內附功能extern "C" {}
修復了這個問題。