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=Y2OY+e4B+L+9UDcT gNYBNuxbBi2x90hUU4glVxwkOwZN2dFswQEj9Hm1C+YDJISaNog/z0+HjB7yPUUY aLSeO/Tmn6gbnLWV6NXnuqjEOdsSankBD/6DyhWPXuv+4+Sq9RLEUcLNJBD+E6Eg xi4zZD9djHJuPUXoKcVvq4vrNS8= 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=NQsAByrTzey89U8ZMllriH /vht0=; b=f58rIoLh8ZqR26k5crr6x0MFnwh/1eUzwXKaAlg/6xTaNEM1chqE5O OnzHB9RVzrMv1ao+yOlao+Uf/iBKGOfx85QiEbnb+Uu1XgUwyghYGwoxuweSe9C+ ZULWZbAaGErLaCD2J7FWFk90Uze8thcjpnabo63zmuPMMUZnzPis4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*Ad:U*yselkowitz, Hx-languages-length:1443, UD:ru 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: <1488500089 DOT 994801791 AT f392 DOT i DOT mail DOT ru> From: Yaakov Selkowitz Message-ID: Date: Thu, 2 Mar 2017 19:19:02 -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: <1488500089.994801791@f392.i.mail.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 2017-03-02 18:14, sorryforaskingthis.bk.ru via cygwin wrote: >> On 2017-03-02 16:54, Yaakov Selkowitz wrote: >> >> 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? >> > Yes, you're right. It's autoconf test and it perfectly passed at 64-bit MinGW > and 64-bit Cygwin, but not on 32-bit Cygwin. It would fail on 32-bit MinGW too. > And I don't understand why you're say that it is related to stdcall, while > wglCreateContext exposed directly without any @0 @4 etc. No, it's not, check the implib yourself. You have to use a proper declaration to link stdcall functions, and the autoconf tests don't do that. You need to change the test to avoid this; exactly how depends on the intent of the test. > Yes, I need to use Win32. ^^^^ > I want to port application that heavily POSIX-dependent, but also want to save ^^^^ > performance as much as possible. Big difference. > I think if w32api-runtime package is provided it supposed to work. Maybe, maybe not. Mixing *NIX and Win32 APIs isn't so simple. -- 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