Results 1 to 5 of 5

Thread: Getting Started WIth OpenGL

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    1

    Getting Started WIth OpenGL

    I have known the c++ language for sometime now, and I began to get interested in OpenGL recently, for many reasons. I have already bought the official OpenGL Programming guide and I have Microsoft Visual C++ 6.0.

    I have not been able to get anything, from the book, or otherwise (internet sources, examples), to work and compile with my MS VC++ 6.0

    How can I compile OpenGL with MS VC++ 6.0?

    Can anyone help me figure out what's wrong? And any suggestions on getting started programming with OpenGL?

    Also... I was thinking about focusing in a 3d game engine, any suggestions there either?

    Thank You In Advance.
    They Say The Soft Rains Will Come... What A Glorious Day It Will Be.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2001
    Location
    Fort Collins, Colorado
    Posts
    446

    Re: Getting Started WIth OpenGL

    You'll need to post some error messages or better describe what you mean when you say it won't compile. It'll be very hard for us to guess at what is going wrong without more info.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Getting Started WIth OpenGL

    Hi !

    Yes, some more information would help, if you get compilation errors then post them here, if you get linking errors, make sure that you included opengl32.lib and maybe glu32.lib in your project, it is also possible that you need glut or glaux or other libraries to get an application to link succesfully.

    Mikael

  4. #4

    Re: Getting Started WIth OpenGL

    I use VC++ 6.0 so here's some pointers...

    Make sure the opengl32.lib and glu32.lib etc are placed in your lib directory and that it has the .h equivalents in the include/GL directory. Mine did so I assume yours does too.

    Next either manually add the lib filenames to the project via project->settings->link or after including the gl include files in your source file add the following lines... whatever you feel more comfortable with:

    #pragma comment(lib, "OPENGL32.LIB")
    #pragma comment(lib, "GLU32.LIB")

    Then do the smallest GL project available to make sure that everything will compile fine such as those at nehe.gamedev.net ... then work your way up.

    And yes let us know what happens when you try to compile/link/run the program.

    Tina
    Learning OpenGL while working on sourceforge projects:
    https://sourceforge.net/projects/simulant/ and
    https://sourceforge.net/projects/projectnova/

  5. #5
    Member Newbie
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    48

    Re: Getting Started WIth OpenGL

    Use Borland =)
    Knowledge is Power

Similar Threads

  1. Getting started with OpenGL
    By kevinharlan in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-01-2014, 08:49 PM
  2. Getting started with OpenGL 3.3
    By vindy in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-04-2012, 05:12 AM
  3. OpenGl Es how to get started?
    By danjohnsonjr in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-04-2012, 03:54 PM
  4. Getting started with OpenGL for the web
    By wanting2learn in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-04-2011, 11:47 AM
  5. Getting started with OpenGL using 'C' (not C++)
    By JF_Aidan_Pryde in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 12-09-2002, 03:31 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