delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/25/08:46:08

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_05,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <COL104-W19F2679EE5369743F5846C93550@phx.gbl>
Reply-To: <cygwin AT cygwin DOT com>
From: =?iso-8859-1?Q?Andr=E9_Bleau?= <andre_bleau AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Re: Static linking issue under cygwin.
Date: Mon, 25 May 2009 08:45:52 -0400
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com


"Vladimir A. Petrov" wrote:
=20
> Hello!
=20
Hello Vladimir,
=20
> ...
>=20
> The similar problem is also reproducible at the another PC with
> different Cygwin installation and with different set of libraries
> (opengl-1.1.0-10 and freeglut-2.4.0-1) that in this case are part of
> the Cygwin distribution and were installed via standard Cygwin setup
> program. For details see attached fly-cubes-cygcheck.out and
> fly-cubes-link-failure.out.=20
=20
See my comments about fly-cubes-link-failure.out bellow
=20
> ...
=20
fly-cubes-link-failure.out contains:
=20
> $ gcc -o fly-cubes.exe -lopengl32 -lglut32 -lglu32 fly-cubes.c
=20
The correct order for searching the libraries is: -lglut32 -lglu32 -lopengl=
32=20
=20
fly-cubes.c must be _before_ the libraries. Chuck's response was correct ab=
out this last point,
but wrong about the librairies order.
=20
This -lglut32 does _not_ link to freeglut btw. It links to glut32.dll from =
the openGL package.
=20
Please read: /usr/share/doc/opengl-1.1.0/README.txt and /usr/share/doc/open=
gl-1.1.0/FAQ.txt
=20
=20
- Andr=E9 Bleau, Cygwin's volunteer OpenGL package maintainer.
=20
Please direct any question or comment about the OpenGL package to cygwin at=
 cygwin dot com
Many other persons will be able to help you if you do.
_________________________________________________________________
Cr=E9ez un personnage =E0 votre image pour votre WL Messenger
http://go.microsoft.com/?linkid=3D9656622

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019