Hi

I am getting an error linking freeglut.lib when using cl.exe (VS 2010) and cygwin on Windows 7:

error LNK2019: unresolved external symbol _glutCreateWindow referenced in function "void __cdecl my_function()....

My application requires both GLUT and CUDA. I can link with the CUDA library because CUDA function names are mangled in both my object code and the CUDA library.
However, I cannot link with the GLUT library because the names are mangled in the library, but not in my object code: 

In my object code:
U _cudaThreadExit@0
U _glutInitWindowSize

In cudart.lib:
00000000 T _cudaThreadExit@0

In freeglut.lib:
00000000 T _glutInitWindowSize@8

Does anyone know why the GLUT function names are not being mangled in my object code?

cheers
steve