Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find error library on Mac OS X

I wanted to use the error() function that's defined in the error.h library file and I cannot find that on my Mac. I use 10.10.4 OSX Yosemite. I think can work arounf errno and strerror but just wanted to find out if there's an alternative.

like image 817
Ani Avatar asked Oct 26 '25 17:10

Ani


1 Answers

you should instead use #include <mach/error.h> on Mac OS

like image 62
Özgür Avatar answered Oct 29 '25 07:10

Özgür



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!