How to link library in SDK template projects makefile

Im trying to figure out how to link a library (im using FFTW for comparison in one of my projects) within the makefile of the CUDA SDKs template project. Everything I tried has not worked yet and I couldnt find any explanations regarding how to add libs etc without editing the Maybe you can tell me which lines I have to add to the template makefile for getting rid of those “undefined reference” errors… it would help me a lot!

I don’t believe you can’t link external libraries using the SDK templates. It is limited to CUBLAS, CUFFT and OpenGL libraries, all of which are hard coded into

Which is just one of a million other compelling reasons not to bother trying to use it.

Alrighty then thank you!