[mlpack] Require Help

Ryan Curtin ryan at ratml.org
Sun Mar 5 19:08:16 EST 2017

On Sun, Mar 05, 2017 at 02:08:54AM +0530, Lakshya Agrawal wrote:
> May be I am doing something wrong but can some one please tell me how to
> compile "load_save_test.cpp" in "src/mlpack/tests" other than using "make
> mlpack_test" . I would like to compile it using gcc . I have executed
> something like "*g++ -std=c++11 load_save_test.cpp
> -I/home/lakshya/mlpack/src-lrt -larmadillo -lboost_program_options
> -lboost_unit_test_framework -lboost_serialization -L/usr/local/lib/
> -lmlpack*" But i am getting error ->
> * "/tmp/ccfVnx3F.o: In function `main':load_save_test.cpp:(.text+0xfffa):
> undefined reference to `init_unit_test_suite(int, char**)'collect2: error:
> ld returned 1 exit status"*.
> But running the same after copying the file  in my home directory and
> compiling it using the above gets compiled .Please can some one help me out
> .
> Thank You !!!

Hi Lakshya,

You already commented on this in your issue, no need to write about it
twice.  I'll answer there.



Ryan Curtin    | "Maybe the next time."
ryan at ratml.org |   - J.G. Ballard

More information about the mlpack mailing list