[mlpack] Introduction GSoc 2018

Evgeny Freyman evg.freyman at gmail.com
Sun Dec 10 11:23:35 EST 2017


Hi Rahul,

Just getting started with MLPack myself and had the similar problem. The
solution is:

1. As far as I know gcc is for C and g++ is for C++ language, so you need
to use g++
2. You didn't specify dependencies, thats why you got lots of unresolved
references. The proper way to compile your code is:

g++ -std=c++11 cov.cpp -lmlpack -larmadillo -lboost_serialization
-lboost_program_options -lboost_unit_test_framework

granted that you installed MLPack (ran "make install" command from the
instructions). Some of those Boost's dependencies may be redundant here, it
depends on what you use in your code.

Be careful to specify your source files before list of dependencies.
Thanks *rcurtin
*for clarification.

All the best
Eugene Freyman


вс, 10 дек. 2017 г. в 16:46, Rahul Barnwal <rahulbarnwal70 at gmail.com>:

> Hi,
> I am a fourth year undergraduate student at Indian Institute of
> Technology, Kharagpur, India. I am interested in contributing to mlpack
> library. I am new to open source field and want to explore it in area of
> interest and hence, mlpack.
>
> Following the instructions given on *contributing to mlpack* page, i have
> compiled it from the source and have also tried some of the simple command
> line executables like mlpack_linear_regression.  But while implementing
> simple mlpack programs, i am stuck.
> i gave this command:
>  gcc -std=c++11 cov.cpp
> But got this error instead,  *https://pastebin.com/cb8aKRKf
> <https://mailtrack.io/trace/link/e2aa548a339d5b0a5dc5e997c6ebbb9f8930d296?url=https%3A%2F%2Fpastebin.com%2Fcb8aKRKf&userId=745499&signature=318dc6e043061d37>*
>  Could you please let me know what is wrong here ?
>
>
> --
> Regards,
> Rahul Barnwal
> 4th year Undergraduate
> Mathematics Department
> IIT KHARAGPUR
>
>
>
>> <https://mailtrack.io/> Sent with Mailtrack
> <https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality>
> _______________________________________________
> mlpack mailing list
> mlpack at lists.mlpack.org
> http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20171210/2a7c0ff8/attachment.html>


More information about the mlpack mailing list