Results 1 to 5 of 5

Thread: need help with GLUT

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2005
    Location
    sa
    Posts
    6

    need help with GLUT

    Hi,

    I was hoping you could help me out with this problem im having...

    I'm learning OpenGL, using GLUT because I don't know the Windows API, but I can't get it to work. I get the following compile error:

    Compiling...
    hello_source.cpp
    Linking...
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/hello.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    I copied the glut32.dll into %windir%\system folder
    I copied glut.h into include/gl
    I copied glut.lib into lib

    I did notice the file glut.def, but no idea where its supposed to go!?!?!

    When reading the help files, it said that I had to compile the dll file, but there was no glut.dsw project file...

    So I just copied the glut32.dll that was already in the archive file...

    Please help me!

    Thanks very much!

    Cheers

    Richie.

  2. #2
    Junior Member Newbie
    Join Date
    May 2005
    Posts
    7

    Re: need help with GLUT

    what version of your glut? try http://www.xmission.com/~nate/glut.html

    it is correct that you ignore the .def file.

    what is your compiler? version? the original project was compiled under what compiler?

    if you can clarify this, im sure there are peoples who can help you.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Mar 2005
    Posts
    115

    Re: need help with GLUT

    You can also download a good version here http://programminghq.tk/ then goto downloads/OpenGL. but the unresolved external WinMain is something I see in win api programs. In a win api program WinMain replaces the main function. You think you can post the code that is in your main function, because if you learned a little win api while learning glut and you used it then that may be your problem.

  4. #4
    Guest

    Re: need help with GLUT

    Hi,
    I'm using the same version as the link you provided...

    I'm compiling with Visual C++ 6.0.

    I hope you can help me! Thanks!

    richie

  5. #5
    Guest

    Re: need help with GLUT

    Oh, sorry I don't know what compiler that version was compiled on, but I know it was VC++, but must have been v 6 because the latest GLUT version was released in 2002...

    richie

Similar Threads

  1. glut.h not found after installing glut
    By SagoO in forum OpenGL: General
    Replies: 8
    Last Post: 11-13-2010, 08:04 PM
  2. Timers - time.h or GLUT timerfunc? GLUT or SDL..?
    By omdown in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 12-16-2009, 12:27 PM
  3. Using GLUT meshes without GLUT window
    By Dwight in forum OpenGL: General
    Replies: 2
    Last Post: 11-25-2008, 03:06 AM
  4. glut teapot do i need to initialize glut?
    By bansheeogl in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-01-2005, 04:21 AM
  5. Subwindows in GLUT - New section available in the GLUT tutorial
    By Antonio in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-13-2000, 10:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean