[mlpack-git] [mlpack] Linking errors in building mlpack in Mac OS X (#442)

ttuethao notifications at github.com
Tue Jun 16 05:57:30 EDT 2015


OK, I think the problem may be because macports-boost was built via clang (probably related to this http://stackoverflow.com/questions/29354201/linking-error-for-boostprogram-options). I rebuilt boost via gnu compilers and it works now.  So this seems to be down to the incompatibility between clang and gnu. 

Thank you, rcurtin!

PS: another not related (but maybe useful) remark  for those who want to install g++ in mac (I prefer gnu compilers because they seem to give faster programs and also support omp): one has to specify the build-in libraries for g++ and gcc correctly, since clang has the same library names in /usr/lib, which do not  have some standard symbols for g++ (such as std::basic_string, etc.) This can be a problem when linking to mlpack dependencies because the libxml2 often lives in the same folder as clang's libraries. 

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/442#issuecomment-112370037
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150616/db92026d/attachment.html>


More information about the mlpack-git mailing list