Reputation: 1
I installed shogun following the tutorial shogun quick start and tried this simple example
However, when I run this:g++ -lshogun minimal.cpp
I got this:
/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
And as is suggested, i ran ldconfig
which gave the same output.
I have googled this question but got no helpful answer. Your kindly help will be definitely appreciated!
Upvotes: 0
Views: 167