This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenGL linker error


On Tue, 6 Feb 2007, Brian Ford wrote:
> On Tue, 6 Feb 2007, Ritter, Nils wrote:
> > g++ -o out-glut/salmon out-glut/adjacency.o out-glut/assemble-matrix.o
> > out-glut/big-vector.o out-glut/bounding.o ... lots of object files ...
> > out-glut/wx-salmon.o -lXi -lXt -lICE -lXext -lXmu -lSM -lX11
> > -L/usr/X11R6/lib -L/lib/w32api -lglut -lopengl32 -lm
>
> Your first problem is that opengl32 is a Windows native library,
> not an X11 one.  The X11 one is named GL.  You should not have a
> -L/ib/w32api in this command.

Ah, ^l.

Also note that the proper link order is -lglut -lGL -lXstuff.

-- 
Brian Ford
Lead Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]