我正在編寫使用SWIG和mkoctfile的輕量級Octave綁定到Quantlib的過程。我正在關注SWIG和Octave主頁上的文檔。Octave和SWIG。 mkoctfile抱怨:無法識別的參數
從SWIG文檔:
27.2.1編譯的動態模塊
倍頻程模塊是具有 「.oct」 後綴的DLL /共享對象。 構建一個oct文件通常使用mkoctfile命令 (在Octave本身或shell中)完成。例如,
$痛飲-octave -C++ example.i -o example_wrap.cxx $ mkoctfile example_wrap.cxx example.c
其中example.c是包含滿足gcd()實現該文件。
的就是這些文件我到目前爲止:
- 我痛飲接口文件quantlib-octave.i
- 我的功能實現quantlib-octave.cpp使用產生
- 膠水封裝文件SWIG:quantlib-octave_wrap.cxx
這是調用mkoctfile時的CLI輸出:
根@ yourbox:〜/ src目錄/ quantlib倍頻$ mkoctfile quantlib-octave_wrap.cxx quantlib-octave.cpp mkoctfile:無法識別的說法 quantlib-octave_wrap.cxx
的幫助信息顯示時我輸入mkoctfile -h
不是很有用。
有誰知道爲什麼mkoctfile抱怨?
版本信息
SWIG Version 2.0.4
Compiled with g++ [x86_64-unknown-linux-gnu]
Configured options: +pcre
mkoctfile, version 3.6.0
Octave: 3.6.0
更好的解決方案在我看來補丁mkoctfile是少挑剔。 – Flexo 2012-08-03 17:59:33