I have successfully compiled a CU file on Matlab +CUDA. I want to used OpenGL to show this output on this platform, but I don’t work. The problem is that when I used command
nvmex -f nvmexopts.bat filename.cu -IC:\cuda\include -LC:\cuda\lib -lcudart
Glut library of OpenGL can not be called.