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)" To: cygwin 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> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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