This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: i686 ld couldn't resolve wglCreateContext from libopengl32.a on x86_64 system
- From: "sorryforaskingthis.bk.ru via cygwin" <cygwin at cygwin dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Fri, 03 Mar 2017 03:14:49 +0300
- Subject: Re: i686 ld couldn't resolve wglCreateContext from libopengl32.a on x86_64 system
- Authentication-results: sourceware.org; auth=none
- Authentication-results: f392.i.mail.ru; auth=pass smtp.auth=sorryforaskingthis at bk dot ru smtp.mailfrom=sorryforaskingthis at bk dot ru
- Reply-to: sorryforaskingthis at bk dot ru
- Reply-to: sorryforaskingthis at bk dot ru
>On 2017-03-02 16:54, Yaakov Selkowitz <yselkowitz@cygwin.com> 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.
And I don't understand why you're say that it is related to stdcall, while wglCreateContext exposed directly without any @0 @4 etc. With --enable-stdcall-fixup ld says: undefined reference to `wglCreateContext@0'
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.
I think if w32api-runtime package is provided it supposed to work.