2011-09-08 63 views
0

我得到了以下錯誤:無法編譯CUDA SDK在Lion上

/usr/include/libkern/i386/_OSByteOrder.h(60): error: identifier "__builtin_bswap32" is undefined 

/usr/include/libkern/i386/_OSByteOrder.h(74): error: identifier "__builtin_bswap64" is undefined 

../../common/inc/cutil_inline_runtime.h(176): error: class "cudaDeviceProp" has no member "tccDriver" 

../../common/inc/cutil_inline_runtime.h(201): error: class "cudaDeviceProp" has no member "tccDriver" 

../../common/inc/cutil_inline_runtime.h(307): error: identifier "CUFFT_UNALIGNED_DATA" is undefined 

不知道如何解決這個問題?謝謝

回答

0

我解決了這個問題,使gcc指向gcc-4.2而不是llvm-gcc