will Ji
will Ji

Reputation: 1

Error when running the minimal example of shogun

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

Answers (0)

Related Questions