Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Setting up Dev Env.

  1. #1
    Guest

    Setting up Dev Env.

    This is a stupid question, but i've never quite figured this out. I downloaded glut and im trying to set up MS VC6 to properly use it. I put the .libs from glut in the VC lib directory, the .h's in the include dir, and the dlls in my windows/system dir. In my project i added glut32.lib to my links section. When i try to compile i get an error about an unresolved external _WinMain16@ or something like that, which im assuming has something to do with me not linking properly. I just realized that i never added the opengl32.lib, will this solve the problem or am i missing something else?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    London
    Posts
    562

    Re: Setting up Dev Env.

    Normally you should create GLUT projects as console applications, rather than Windows applications. Looks like you created it as a Windows app, so the linker is looking for a WinMain function (which GLUT doesn't define) instead of a main function (which it does).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •