X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-5.4 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <1355282603.9188.4.camel@YAAKOV04>
Subject: Re: freeglut
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
To: cygwin <cygwin@cygwin.com>
Date: Tue, 11 Dec 2012 21:23:23 -0600
In-Reply-To: <1355237574.22625.YahooMailNeo@web122002.mail.ne1.yahoo.com>
References: <1355237574.22625.YahooMailNeo@web122002.mail.ne1.yahoo.com>
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, 2012-12-11 at 06:52 -0800, Hisham Sueyllam wrote:
> I have the following C program which runs fine on mingw using :
> gcc -o cube MagicCubeFinal,cpp -lopengl32 -lglu32 -lfreeglut
> But I tried it on cygwin using:
> gcc -o cube MagicCubeFinal.cpp -lGl -lglu -lfreeglut

BTW, that should be -lGL and -lGLU (capitalized).

> I got a bunch of errors (unresolved references)
> but when I used glut instead of freeglut in the last parameter
> it compiled and linked fine

Correct, because that is how the library is named on *NIX systems.

> but when I ran it I got nothing

On *NIX systems, libGL/libGLU/libglut are GLX-based; you need a running
X server and properly set DISPLAY variable for the program to run.


Yaakov
Cygwin/X



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

