delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/02/17:54:50

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=MM6oM+OQBwnhfnf9
Ng/JX08XAmb2I308aqbn4WlWw1vvdh91NSTK6Qx9WJM9tA/AEzUAi16eTFViTOe7
x38hoYzxhyVJNyV0AZ2m3d38ou2PwmOiYBus7zwjSkkuA3mZX6E0S5NOmTyfTn6h
sgjZJkfidty6NuK4H0oXFJZXXg4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=1Yg4mvHe4QgOt0ZjT35224
MhxHg=; b=ICAfDmGcoJojF0HoilQjo99+mViILEW1CSIg96kxSr2KMUtbIrZIss
3XzasS7pySgqVNv0K6ttyR2zF/I/xMtZItAipidBGcPye7g/ViwXjs4slag3dO7R
IHA80A8NyvUyStsMAOzm6Wsj8m56qOQa3Z883Pza++JJjXGh3uNs0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*i:sk:1488493, Hx-languages-length:806, H*MI:sk:1488493, H*Ad:U*yselkowitz
X-HELO: mx1.redhat.com
Subject: Re: i686 ld couldn't resolve wglCreateContext from libopengl32.a on x86_64 system
To: cygwin AT cygwin DOT com
References: <1488493020 DOT 688562858 AT f125 DOT i DOT mail DOT ru>
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
Message-ID: <067a7ff0-8b44-02c3-b452-179df9fe75eb@cygwin.com>
Date: Thu, 2 Mar 2017 16:54:33 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <1488493020.688562858@f125.i.mail.ru>
X-IsSubscribed: yes

On 2017-03-02 16:17, sorryforaskingthis.bk.ru via cygwin wrote:
> $ gcc -o /tmp/conftest.exe /tmp/conftest.c -lopengl32
> /tmp/ccec30zH.o:conftest.c:(.text+0xc): undefined reference to `wglCreateContext'
>
> conftest.c:
>
> #ifdef __cplusplus
> extern "C"
> #endif
> char wglCreateContext ();
> int
> main ()
> {
> return wglCreateContext ();
>   ;
>   return 0;
> }

This looks like a snippet of an autoconf AC_CHECK_LIB (or 
AC_CHECK_FUNCTION) test.  Such tests don't work with 32-bit Win32 APIs 
-- on either Cygwin or MinGW -- because they don't take stdcall into 
account.  You'll need to modify the test to work around that.

Also, if you're using Cygwin, do you *really* want to be using Win32 
OpenGL and not X11?

-- 
Yaakov

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