delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/24/06:00:42

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DA52398B805
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1611485992;
bh=/FhZjxo/w7pJwYa3MDAIqUMhW85qevGK7zHUoKsfexE=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=RJ++8hzwTWYUXNfDPr1uQTbLvr7AnVjTQN1NKJxF4hlYUq/pl6+YwKWTFkRk9nzjB
bsybc4KFxbQs7mD5D+8BLU9m5aoUbP46urD77xqlqFb85xiatSG45lx8pwrINn0YDU
YFOFTa17yhpXW5ny0sOivWMFftlouyhC3JMA81dI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 442463939C06
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=yU3vWhlyj65GQLlnw/3o98ygyBm0yj1ScZsk/ctfA0s=;
b=PFyZUvFq9EJJECw/dSBpQea+QhUHFlFk0nsKr9xh4mLb592h9nKjTU6foWYcG62kDy
A27pIvCEnDe1b5tBfpJ6Y73gZ73+PmUIeV+g4SwJmavPl5hQFF+a9uRipoCueMbntORF
TLn3CvBBlBuRy+MycdK+qCrs71X7FYlxekx45yTkZGzPiUjbRQzKFf/zgfLeHjjIAXMx
C2m4xc1bp0mLIn0IRlBGzHq7ZlclI5otPJUF7z5/zdbq63mEhty137fHOGIAT2sqkRrJ
PKPfihWLXSXIPi6wnkmiid0xgIf72CuprhYhH42lcoF93Y+hK4b497tBc194uixHdk9R
C1gw==
X-Gm-Message-State: AOAM533Sl7tpJ9HOOS+mYEb9q8qbyaZTQce/cj+Blj5S/L1QLSv/SjVa
OcGfTpZ7pw/I43UsrnPOPSLlBGUcwS201GMi2rA=
X-Google-Smtp-Source: ABdhPJy0l5sigTjGOK6/iZk8qoUmrdh3TSCk+Yhxb7knPCIUCcD4XqCmpyrtn0SXnFCn7SfXKip9wzlpWjp4dy1zmBQ=
X-Received: by 2002:a1c:1d12:: with SMTP id d18mr672154wmd.121.1611485988410;
Sun, 24 Jan 2021 02:59:48 -0800 (PST)
MIME-Version: 1.0
References: <AM0PR10MB2516DBD53A108D27E29719C8CCBE0 AT AM0PR10MB2516 DOT EURPRD10 DOT PROD DOT OUTLOOK DOT COM>
In-Reply-To: <AM0PR10MB2516DBD53A108D27E29719C8CCBE0@AM0PR10MB2516.EURPRD10.PROD.OUTLOOK.COM>
Date: Sun, 24 Jan 2021 11:59:37 +0100
Message-ID: <CAEhDDbAqy-=R5jRRzKNFVkDMzZEMb_8J=eBsaR_yo7rYoR4zHA@mail.gmail.com>
Subject: Re: GLX and Xlib
To: =?UTF-8?B?UmFmYcWCIEpvcGVr?= <rafaljopek AT hotmail DOT com>
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Csaba Raduly via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Csaba Raduly <rcsaba AT gmail DOT com>
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 10OB0KCh027287

Hi Rafal,

On Sun, 24 Jan 2021 at 11:48, Rafał Jopek via Cygwin  wrote:
>
> Hello,
>
> I have a compile error, can anyone help fix this?
>
> An example is here:
>
https://www.khronos.org/opengl/wiki/Programming_OpenGL_in_Linux:_GLX_and_Xlib
>
> Compile error:
>
> $ gcc quad.c -o quad -lX11 -lGL -lGLU
> In file included from quad.c:12:
> /usr/include/w32api/GL/glu.h:68:78: error: expected ‘)’ before ‘*’ token
>    68 | void APIENTRY gluQuadricCallback(GLUquadric *qobj,GLenum
which,void (CALLBACK *fn)());
>       |
           ^~
>       |
           )

If you want to program with OpenGL, you need to install the development
package (libGLU-devel-9.0.1-1
<https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2FlibGLU-devel%2FlibGLU-devel-9.0.1-1&grep=glu.h>
) and runtime (libGLU-9.0.1-1) .

At the moment, the Cygwin compiler is finding the Win32 OpenGL headers.
Because Cygwin is not Windows, this is not going to work.


Csaba

-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformant
way
to get the wrong information: this is what you want. - Scott Meyers
(C++TDaWYK)
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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