[mlpack-svn] [MLPACK] #357: error building mlpack
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Mon Aug 4 12:43:48 EDT 2014
#357: error building mlpack
-----------------------+----------------------------------------------------
Reporter: ftrovato | Owner: rcurtin
Type: defect | Status: accepted
Priority: major | Milestone:
Component: mlpack | Resolution:
Keywords: | Blocking:
Blocked By: |
-----------------------+----------------------------------------------------
Comment (by ftrovato):
Hi Ryan,
your advice on using -lmlpack solved the problem and I was able to run the
test .cpp program. As a side question, which might be helpful for me and
also for others, why -lmlpack option worked, while explicitly indicating
the linker path with -L/path/to/mlpack/build/lib/ did not?
I found libmlpack.so also in /usr/local/lib/ and so I will set
LD_LIBRARY_PATH=/usr/local/lib/ as you suggested. I think it is more
convenient if the other path changes.
Initially I searched for libmlpack.so with ldconfig -p | grep libmlpack
but did not get any results. I apologize if this is a stupid question, but
how can I make ldconfig aware of the existence of /usr/local/lib/ ?
So far, the command that worked to compile the .cpp program was:
g++ -I/usr/include/libxml2/ mlapack_test.cpp -lmlpack
Thank you for your help,
Fabio
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/357#comment:3>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed at Georgia Tech.
More information about the mlpack-svn
mailing list