support using other lib in CUDA project ?

for image processing people always use Open CV.

i’d like to use some functions in this library after installing it.

in .cu i call the function in .cpp.

in .cpp i include <cv.h>, <highgui.h> and so on.

can i do this? i tried but failed :

undefined reference to “cvline” …

Make sure you’re linking to the Open CV library. You’ll probably need to post sample code and the parameters for compiling and linking to get help.

It’s better to use extern “C”. CUDA’s name mangling is different from cpp, even if you’re using the same compiler.