delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/11/22:23:36

X-Recipient: archive-cygwin AT delorie DOT 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 AT users DOT sourceforge DOT net>
To: cygwin <cygwin AT cygwin DOT com>
Date: Tue, 11 Dec 2012 21:23:23 -0600
In-Reply-To: <1355237574.22625.YahooMailNeo@web122002.mail.ne1.yahoo.com>
References: <1355237574 DOT 22625 DOT YahooMailNeo AT web122002 DOT mail DOT ne1 DOT yahoo DOT com>
Mime-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

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

- Raw text -


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