This is the mail archive of the cygwin@cygwin.com 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: GLUT programming in CygWin


Okay thanks - my first glut program compiles now.

Also now using opengl rather than glut as search keyword and am finding more
archived posts - you were right, this does come up a lot.

Cheers
Steve


"Brian Ford" <ford@vss.fsi.com> wrote in message
Pine.GSO.4.58.0312041336470.28297@eos">news:Pine.GSO.4.58.0312041336470.28297@eos...
> Please read /usr/share/doc/opengl-1.1.0/README.txt.  And, search the
> archives first next time since this issue comes up a lot.  Thanks.
>
> On Thu, 4 Dec 2003, Steve Mowbray wrote:
>
> > Am starting out with the GLUT library and I am having trouble compiling
my
> > first program under CygWin. I get the following compile/linker errors:
> >
> >
/cygdrive/c/DOCUME~1/steve/LOCALS~1/Temp/ccO1yqTt.o(.text+0xd0):simple.c:
> > undefined reference to `_glutDisplayFunc@4'
> >
/cygdrive/c/DOCUME~1/steve/LOCALS~1/Temp/ccO1yqTt.o(.text+0xd8):simple.c:
> > undefined reference to `_glutMainLoop@0'
> > collect2: ld returned 1 exit status
> >
> > I am compiling with
> >
> > gcc -lopengl32 -lglu32 -lglut32 test.c
> >
> Clue: wrong link order.
>
> -- 
> Brian Ford
> Senior Realtime Software Engineer
> VITAL - Visual Simulation Systems
> FlightSafety International
> Phone: 314-551-8460
> Fax:   314-551-8444
>




--
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]