我已經看到了很多這個問題,但我對C++相當陌生,並且我嘗試了下面的每個答案。我正在嘗試將libsndfile lib與XCode和mac osx小牛隊一起使用。然而,問題在於C++ libsndfile和mac osx
/* The following typedef is system specific and is defined when libsndfile is
** compiled. sf_count_t can be one of loff_t (Linux), off_t (*BSD), off64_t
** (Solaris), __int64_t (Win32) etc. On windows, we need to allow the same
** header file to be compiler by both GCC and the microsoft compiler.
*/
#ifdef _MSCVER
typedef __int64_t sf_count_t ;
#define SF_COUNT_MAX 0x7fffffffffffffffi64
#else
typedef __int64_t sf_count_t ;
#define SF_COUNT_MAX 0x7FFFFFFFFFFFFFFFLL
#endif
從哪裏獲得__int64錯誤「未知類型名稱‘’我明白這是由於__int64是爲窗戶,但我怎樣才能改變這種對於Mac?