delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/20/09:00:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <42665276.268829CD@dessent.net>
Date: Wed, 20 Apr 2005 06:00:38 -0700
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: OpenGL problems
References: <6 DOT 2 DOT 1 DOT 2 DOT 2 DOT 20050420080737 DOT 02b733c0 AT imap DOT arl DOT psu DOT edu>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Walt K Michlauk wrote:

> gcc -o glxsimple glxsimple -I/usr/X11R6/include -Lw32api -lopengl -LX11R6

You need to be more careful with your command line switches.  "-L"
specifies a directory for the linker to search in, so "-Lw32api" and
"-LX11R6" are both meaningless.  You use "-L" to specify a path and "-l"
to specify the name of the library.  Case matters.

Try the following instead:

gcc glxsimple.c -o glxsimple -I/usr/X11R6/include -L/usr/X11R6/lib -lGL
-lX11

(You must have the xorg-x11-devel package installed for this to work.)

Furthermore, for questions regarding anything X11-related, the proper
list is cygwin-xfree <at> cygwin <dot> com.

Brian

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