This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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 at cygwin dot com
- Date: Fri, 03 Mar 2017 01:17:00 +0300
- Subject: i686 ld couldn't resolve wglCreateContext from libopengl32.a on x86_64 system
- Authentication-results: sourceware.org; auth=none
- Authentication-results: f125.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
I've done fresh install of cygwin with setup-x86.exe @ Win10 LTSB 2015 x64.
I've installed gcc-core and w32api-runtime packages.
opengl32.dll in System32 folder is 32-bit dll
With x86_64 install of cygwin ld able to find reference to wglCreateContext, with x86 - not.
$ 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;
}