cjlin1 / libsvm

LIBSVM -- A Library for Support Vector Machines
https://www.csie.ntu.edu.tw/~cjlin/libsvm/
BSD 3-Clause "New" or "Revised" License
4.54k stars 1.64k forks source link

Error while installing on Mac #154

Closed nipungupta98 closed 4 years ago

nipungupta98 commented 4 years ago

I am using mac OS Mojave 10.14.6. When I make it encounters following error among others:

In file included from svm.cpp:1:
/Library/Developer/CommandLineTools/usr/include/c++/v1/math.h:761:41: error: no
      member named 'fabsf' in the global namespace
abs(float __lcpp_x) _NOEXCEPT {return ::fabsf(__lcpp_x);}

Other errors are similar to this one and are related to math.h. I have updated xcode but nothing helped. Thanks!

cjlin1 commented 4 years ago

This is an issue not related to libsvm.. It's related to the commandlinetools on mac. Check for example

https://github.com/PointCloudLibrary/pcl/issues/2601

On 2019-10-02 12:15, nipungupta98 wrote:

I am using mac OS Mojave 10.14.6. When I make it encounters following error among others:

In file included from svm.cpp:1: /Library/Developer/CommandLineTools/usr/include/c++/v1/math.h:761:41: error: no member named 'fabsf' in the global namespace abs(float lcpp_x) _NOEXCEPT {return ::fabsf(lcpp_x);}

Other errors are similar to this one and are related to math.h. I have updated xcode but nothing helped. Thanks!

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/154?email_source=notifications\u0026email_token=ABI3BHTSRWLUZDPNYIX3BB3QMTXOLA5CNFSM4I42KSQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPG6YEQ", "url": "https://github.com/cjlin1/libsvm/issues/154?email_source=notifications\u0026email_token=ABI3BHTSRWLUZDPNYIX3BB3QMTXOLA5CNFSM4I42KSQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPG6YEQ", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1] https://github.com/cjlin1/libsvm/issues/154?email_source=notifications&email_token=ABI3BHTSRWLUZDPNYIX3BB3QMTXOLA5CNFSM4I42KSQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPG6YEQ [2] https://github.com/notifications/unsubscribe-auth/ABI3BHV3RPTKISMRDNDXZU3QMTXOLANCNFSM4I42KSQA

nipungupta98 commented 4 years ago

Thanks!