Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: compiling on windows

  1. #1
    Guest

    compiling on windows

    How may I compile properly OpenGL source code.

    for compileing the code I have
    g++ -c main.c

    then linking is where I get the problems

    ld -o program.exe main.o -LE:\Windows\devcpp\lib\ -lopengl32 -lglu32 -lglut32 -lglaux32

    I get undefined reference to [gl related command].

    Thanks in advance!

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

    Re: compiling on windows

    Hi !

    Could you be more specific about the linking errors ?

    Do you have a glaux library ?

    Check the linking order, gcc is picky about the order you put the libraries.

    Mikael

Posting Permissions

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