delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/27/10:20:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20001127151925.10970.qmail@web114.yahoomail.com>
Date: Mon, 27 Nov 2000 07:19:25 -0800 (PST)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Re: Help: link errors w/gcc, opengl, glut
To: ksheldon AT context DOT com, cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0

--- ksheldon AT context DOT com wrote:
> 
> 
> 
> From: Ken Sheldon AT CONTEXT on 11/27/2000 06:40 AM
> 
> I am attempting to compile a trivial GLUT program using gcc in cygwin.
> (the program is so small and trivial I have included it at the end of this
> message)
> 
> I am unable to get the program to link.
> gcc    -c -o gldemo.o gldemo.cc
> gcc -o gldemo.exe -lglut32 -lglu32 -lopengl32 gldemo.o

g++ -c -o gldemo.o gldemo.cc
g++ -o gldemo.exe gldemo.o -lglut32 -lglu32 -lopengl32

You must use g++ for C++ code and libraries are command line positionally
interpreted so you must place the library after the object that needs it.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd AT yahoo DOT com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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