Glut and VC++

Iam new to openGL and Iam tring to get some simple programs to run with glut and VC++. I included the lib glut32.lib in the link list, but when I compile I keep getting the error unresolved global symbol _winmain@16 when it tries to link?

any suggestions

thanks
jutah

create the project as a console program …

Great! It kind of worked. The only problem now is that it can’t find the glut32.dll. I don’t know where to put the .dll file?

any suggestions

thanks
jutah

Place the glut32.dll into your Windows/System directory, or the program’s working directory.

[This message has been edited by DFrey (edited 01-20-2001).]

Ok I put the glut32.dll in the windows\system, but now it keeps saying that glut32.dll is linked to missing export? _glutCreateWindowWithExit?

thanks
jutah

Ok…first, you can also create win32 app project (not console!). Then, go to project settings, linker and add after OpenGL32.lib and glu32.lib glut32.lib and you’ll project shall compile (unless you’ve made other errors