Umm... OpenGL & Dev?

This is a discussion on Umm... OpenGL & Dev? within the Game Programming forums, part of the General Programming Boards category; I have this "small" problem... I've managed to make some small programs using dev-c++, but as I tried to use ...

  1. #1
    The Stupid One
    Guest

    Umm... OpenGL & Dev?

    I have this "small" problem... I've managed to make some small programs using dev-c++, but as I tried to use gametutorials' examples I got these messages from the linker:
    undefined reference to `ChoosePixelFormat@8'
    undefined reference to `SetPixelFormat@12'
    undefined reference to `SwapBuffers@4'
    Can somebody help me?

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    have you linked all the required libs?
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    The Stupid One
    Guest
    Yes I have. (opengl32 & glu32)

  4. #4
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    Make sure you're compiling it for a window app not a console app.
    Which tutorial is it?
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  5. #5
    The Stupid One
    Guest
    None of them works.

  6. #6
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    You're compiling for a console project and you need a window project.
    Do this:

    Project-> Project Options -> check do not create a console is checked
    Options -> Linker -> check compile for win32

    Make sure your libraries are still linked in too.

  7. #7
    The Stupid One
    Guest

    Talking THANKS

    Thanks guys! It worked!!!
    WOOHOOO!!!! I GOT THE DEV WORKING!!!!
    YIPPEE!!

  8. #8
    The Stupid One
    Guest
    Sorry, not guys I mean Taylorguitarman!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  2. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 3
    Last Post: 03-08-2004, 07:47 PM
  3. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 1
    Last Post: 03-08-2004, 04:19 PM
  4. OPENGL Dev C++; Fualty LIBS
    By Blizzarddog in forum C++ Programming
    Replies: 5
    Last Post: 01-02-2004, 08:40 AM
  5. Using OpenGL with Dev C++
    By Patrdm83 in forum C++ Programming
    Replies: 4
    Last Post: 02-04-2003, 04:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21