OSX下編譯失敗
Closed this issue · 0 comments
make報錯
CC src/consumer.o
src/consumer.c:80:40: error: too many arguments to function call, expected 1,
have 2
pthread_setname_np(pthread_self(), name);
~~~~~~~~~~~~~~~~~~ ^~~~
/usr/include/pthread.h:473:1: note: 'pthread_setname_np' declared here
OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2)
^
/usr/include/Availability.h:172:50: note: expanded from macro
'__OSX_AVAILABLE_STARTING'
#define __OSX_AVAILABLE_STARTING(_osx, _ios) __AVAILABILITY_INTERNAL##_osx
^
:128:1: note: expanded from here
__AVAILABILITY_INTERNAL__MAC_10_6
^
/usr/include/AvailabilityInternal.h:10207:72: note: expanded from macro
'__AVAILABILITY_INTERNAL__MAC_10_6'
...#define __AVAILABILITY_INTERNAL__MAC_10_6 __attribute...
^
1 error generated.
make: *** [src/consumer.o] Error 1