guitargeek / XGBoost-FastForest

Minimal library code to deploy XGBoost models in C++.
MIT License
86 stars 30 forks source link

Undefined reference to fastforest #11

Closed Amineleg closed 3 years ago

Amineleg commented 3 years ago

Hello. I tried to test this library using the code sample provided in the readme but I keep getting the undefined reference to fastforest error. Do you have any idea what could be the origin of the issue? image

guitargeek commented 3 years ago

Hi! You mean the first C++ example from the README? I just tried it again myself and it work for me, after installing fastforest with make install of course. How did you try to compile the test? You remembered the -lfastforest flag to link against the library?

I compiled it like this with gcc:

g++ -o test test.cpp -lfastforest
Amineleg commented 3 years ago

Hello, thanks for the answer. it seems that my compiler didn't find where the library was installed. I reinstalled fastforest and now it is working. Thanks again.