0

我按照教程shogun quick start安装了 shogun并尝试了这个简单的例子

但是,当我运行这个时:g++ -lshogun minimal.cpp 我得到了这个:

/tmp/ccAIVbZB.o: In function main:

minimal.cpp:(.text+0x24): undefined reference to shogun::init_shogun(void (*)(_IO_FILE*, char const*), void (*)(_IO_FILE*, char const*), void (*)(_IO_FILE*, char const*), void (*)(bool&, bool&))'
minimal.cpp:(.text+0x29): undefined reference toshogun::exit_shogun()' collect2: error: ld returned 1 exit status

正如建议的那样,我跑了ldconfig它给出了相同的输出。

我用谷歌搜索了这个问题,但没有得到有用的答案。您的帮助将不胜感激!

4

0 回答 0