i got a visualization library based on openGL, assuming names , usually projects can be created by #include<mygl.h> in C++,linked by libmygl.a. Now i want to optimize some algorithm of it using CUDA. i wrote a test.cu, including <mygl.h>, by cannot pass compiling. how should i mix CUDA with this library. is the only way to use export “C”?
Dean