[mlpack] Using MLpack Without Installing
Ryan Curtin
ryan at ratml.org
Mon Feb 25 00:12:51 EST 2019
On Mon, Feb 25, 2019 at 11:28:04AM +0800, problemset wrote:
> g++ -I/Users/xxx/clone/boost/dev-mlpack/mlpack/build/lib
> -L/Users/xxx/clone/boost/dev-mlpack/mlpack/build/include
> test_mlpack.cpp -std=c++11 -o test_mlpack
>
> test_mlpack.cpp:3:10: fatal error: 'mlpack/core.hpp' file not found
>
> #include <mlpack/core.hpp>
>
> ^~~~~~~~~~~~~~~~~
>
> 1 error generated.
>
> Did I miss something? Any comments would be highly appreciated.
Hey there Xiaohong,
The include/ directory should be specified with -I not -L. That should
fix it. :)
Thanks!
Ryan
--
Ryan Curtin | "Gentlemen, you can't fight in here! This is the
ryan at ratml.org | War Room!" - President Muffley
More information about the mlpack
mailing list