Thread: Problems installing GLUT in .NET 2003

  1. #1
    Programming Newbie Kaminaga's Avatar
    Join Date
    Jun 2005
    Posts
    14

    Problems installing GLUT in .NET 2003

    Hi,
    I'm having problems installing GLUT in Microsoft Visual Studio.NET 2003 and I'm running Windows XP SP2

    First:
    For glut.h
    I already copied it into C:\...\Microft Visual Studio.NET 2003\Vc7\PlatformSDK\include\gl

    For glut32.lib:
    I copied it to C:\...\Microft Visual Studio.NET 2003\Vc7\PlatformSDK\lib

    For glut32.dll:
    I copied it to C:\...\Microft Visual Studio.NET 2003\Vc7\PlatformSDK\bin

    And the error message I got each time running a simple program of drawing a triangle is:

    Error LNK2019: unresolved external symbol_WinMain@16 referenced in function_WinMainCRTStartup.
    and
    fatal error LNK1120: 1 unresolved externals

    The first time it didn't work, I tried copy glut32.dll to Windows\System32 but it didn't work as well so can anyone help?
    -Kaminaga
    "Temporary constructs of the feeble human intellect, trying desperately to justify it's meaning or purpose.." -Agent Smith
    kaminaga.deviantart.com

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    It sounds to me (even though I don't program OpenGL) that the problem isn't with the gl headers. The WinMain function (entry point) is missing - did you declare it?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    #include <windows.h> as the _first_ thing in your file. Also, make sure you didnt choose "new win32 app" (or whatever its called). You should create a console app and let the glut lib do the windowing work.

  4. #4
    GA ichijoji's Avatar
    Join Date
    Nov 2002
    Posts
    179
    Another alternative to creating it as a console app is just starting with an empty project. For me, glut seems to do ok with that and no #include <windows.h>, as long as I include gl.h and glu.h before glut.h.
    Illusion and reality become impartiality and confidence.

  5. #5
    Programming Newbie Kaminaga's Avatar
    Join Date
    Jun 2005
    Posts
    14
    Thanks! It works fine now.
    You guys rock
    -Kaminaga
    "Temporary constructs of the feeble human intellect, trying desperately to justify it's meaning or purpose.." -Agent Smith
    kaminaga.deviantart.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. migrate from .Net 2.0 to .Net 3.0
    By George2 in forum C# Programming
    Replies: 3
    Last Post: 07-25-2007, 04:07 AM
  2. HELP ME! Having problems with .NET
    By dc_128 in forum C++ Programming
    Replies: 5
    Last Post: 02-19-2003, 12:08 AM
  3. Installing XP....Problems
    By MethodMan in forum Tech Board
    Replies: 14
    Last Post: 11-01-2002, 03:01 PM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  5. Problems with rotations with OpenGL and GLUT
    By darcome in forum Game Programming
    Replies: 13
    Last Post: 07-05-2002, 12:12 AM