newbie on mac unable to compile


I just installed cuda on mac. I used to work with cuda on linux and i am havng difficulties whith the OS change.

When I try to compile a program i made, using:

nvcc -o LB -I$HOME/Developer/GPU Computing/C/common/inc -I/usr/local/cuda/include -lcuda -lcudart -L$HOME/Developer/GPU Computing/C/common/lib/darwin -lGLEW -lglut

I get the following error:

nvcc fatal : Don’t know what to do with ‘Computing/C/common/lib/darwin’

i dont know how to link the libraries, this is how i did it using linux, is there a problem that anybody can see?
i appreciate any help.

Hey C.,

You have a space in your paths at “…/GPU Computing/…” The shell is splitting the string at the space, so try putting quotes around it.