Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Windows XP, Visual Studio .NET and GLUT (OpenGL)

  1. #11
    Junior Member Newbie
    Join Date
    May 2002
    Posts
    9

    Re: Windows XP, Visual Studio .NET and GLUT (OpenGL)

    Tried the Win32 Project to create a win23 console version. Get these errors:

    Win32ConsoleWin32ProjectCube fatal error LNK1169: one or more multiply defined symbols found
    Win32ConsoleWin32ProjectCube error LNK2005: _main already defined in Win32ConsoleWin32ProjectCube.obj

    and I am using glutCreateWindows. This is the whole program : http://www.eng.auburn.edu/~kchang/comp7400/cube.c from Dr. Angle’s web site http://www.cs.unm.edu/~angel/BOOK/SECOND_EDITION/

    Link is the program that is a working program. Works fine compiling on Unix system with some #include monification. Professor did a demo. I add the #pragma comments line before the #include lines in order to get pass the link errors.

    Originally posted by Deiussum:
    Just noticed the comment about MFC... I'm confused now. Are you using MFC to create your window or glutCreateWindow? If you're using MFC to create the window, you'll need to use ChoosePixelFormat, DescribePixelFormat, and SetPixelFormat in order to enable OpenGL. If you're using glutCreateWindow, recreate your project as a Win32 console app and try again...


  2. #12
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,797

    Re: Windows XP, Visual Studio .NET and GLUT (OpenGL)

    Did you create a Win32 console app that had source code and then try and add that .c file as another file? That's a no no... that will cause you to have two main() functions, and give you that error.
    Deiussum
    Software Engineer and OpenGL enthusiast

  3. #13
    Junior Member Regular Contributor
    Join Date
    Jan 2001
    Location
    Belgium
    Posts
    206

    Re: Windows XP, Visual Studio .NET and GLUT (OpenGL)

    I know it doesn't help you a lot, but I just did a GLUT program under VS.NET, works like a charm.

    I don't think the problem is from .NET nor GLUT. There must be something messy somewhere else.

  4. #14
    Intern Newbie
    Join Date
    Apr 2002
    Location
    Split, Croatia
    Posts
    43

    Re: Windows XP, Visual Studio .NET and GLUT (OpenGL)

    Make sure you that in application settings you choose console application and
    check empty project and turn of precompiled headers.
    That should do it.

Posting Permissions

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