i686 ld couldn't resolve wglCreateContext from libopengl32.a on x86_64 system

sorryforaskingthis.bk.ru via cygwin cygwin@cygwin.com
Thu Mar 2 22:17:00 GMT 2017


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;
} ТÒÐÐ¥&ö&ÆVÒ&W÷'G3¢‡GG¢òö7–wv–âæ6öÒ÷&ö&ÆV×2æ‡FÖÀФd¢‡GG¢òö7–wv–âæ6öÒöfðФFö7VÖVçFF–ö㢇GG¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R–æfó¢‡GG¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×ÆPРÐ


More information about the Cygwin mailing list