Thread: NEED HELP WITH OpenGL

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    30

    Need Help With Visual C++

    I am trying to create an openGL project, and i am using a tutorial to learn about it. I am having trouble creating one, instructions tell me to do the following:

    After you have created a new Win32 Application (NOT a console application) in Visual C++, you will need to link the OpenGL libraries. In Visual C++ go to Project, Settings, and then click on the LINK tab. Under "Object/Library Modules" at the beginning of the line (before kernel32.lib) add OpenGL32.lib GLu32.lib and GLaux.lib. Once you've done this click on OK. You're now ready to write an OpenGL Windows program.

    I am not using Visual C++, im using Visual C++ Express Edition Beta. There must be a big difference, b/c i cannot do the simple task i have shown u. Anyone know how to do what i need to do????
    Last edited by adrumsolo4u; 03-03-2005 at 04:15 PM.
    ADRUMSOLO4U

  2. #2
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    There's probably an option to do that somewhere in the compiler. If not, I believe you can use a #pragma directive to link with the libraries.

    I think it's... #pragma comment(OpenGL.lib) or #pragma once.....or something along those lines. I've never really messed with it pragmas a whole lot.

    Nehe includes the source code for his OpenGL tutorials and projects for most popular compilers.

    Oh, and btw...don't let all that Win32 and OpenGL initialization code intimidate you. Just focus on learning how to use OpenGL.

  3. #3
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    It's pragma declaration is:

    # pragma comment(lib, "OpenGL.lib")
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  4. #4
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    Quote Originally Posted by IfYouSaySo
    It's pragma declaration is:

    # pragma comment(lib, "OpenGL.lib")
    Hey, not too bad. I was close.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  3. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM