Problems with driver api on Apple OS X

Hi,
I have problem with compilling simple project that uses driver api. I’m working on retina macbook pro with nvidia 750m under os x 10.10. Compiler returns this error:

ld: library not found for -lcuda
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I don’t really know what is wrong, what i found on google didn’t work for me (or i did it wrong)
I don’t have any problems with compiling samples from nvidia that come with sdk or code that uses runtime api.
There is example project with i Have this problem:

Also, this code compiles & runs whithout any problems on linux machine.

Any help would be really appreciated.

You need to add the location of the library.
The LIB_CUDA variable in your Makefile should be:

LIB_CUDA := -L/usr/local/cuda/lib -lcuda

Well, now it works

Thanks a lot ;)

How would you go about this in Xcode? Thanks