Hello,
I am having problems while running CUDA on Snow Leopard-GoldMaster version. I downloaded the latest CUDA driver which was for Snow Leopard OS. But I’m getting a few compilation errors. I am getting the same errors when i try to compile the sample CUDA programs provided with the SDK.
The errors are :
$make
/usr/include/stdlib.h(272): error: expected an expression
/usr/include/stdlib.h(272): error: expression must have (pointer-to-) function type
/usr/include/stdlib.h(272): error: type name is not allowed
/usr/include/stdlib.h(274): error: expected a “)”
/usr/include/stdlib.h(301): error: expected a “)”
/usr/include/stdlib.h(307): error: expected a “)”
/usr/include/stdlib.h(313): error: expected a “)”
/usr/include/stdlib.h(319): error: expected a “)”
8 errors detected in the compilation of “/tmp/tmpxft_000015f0_00000000-4_MersenneTwister.cpp1.ii”.
make: *** [obj/release/MersenneTwister.cu.o] Error 255
I started getting these errors once I upgraded my Operating System from Leopard to Snow Leopard.
The amusing part is that, there isn’t any call to ‘stdlib.h’ at all in my program. So I was wondering if there could be some error with the driver.
Can you please help me figure this out?
Thank You,
Pavan