Thread: C OpenGL Compiler Error?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    2

    Lightbulb

    Quote Originally Posted by Matt3000
    It's the LIB files. In the project options section, I've put this:

    Code:
    -lopengl32 -lglu32 -lglut32

    Well i got it to work. The truth is that the above libraries must be linked in the REVERSE ORDER... contradictory to EVERY SOURCE i've found on the matter... maybe it's just this version of DEV-C++... whacked

    in your project options->parameters set it to this:

    Code:
    -lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32
    i am not certain what winmm and gdi32 are, but they appear to be necessary for windows.

    hooray!
    Last edited by Scorpius; 07-07-2006 at 04:51 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM