public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "sorryforaskingthis.bk.ru via cygwin" <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: i686 ld couldn't resolve wglCreateContext from libopengl32.a on x86_64 system
Date: Thu, 02 Mar 2017 22:17:00 -0000	[thread overview]
Message-ID: <1488493020.688562858@f125.i.mail.ru> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 772 bytes --]

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;
}\0ТÒÐÐ¥\a&ö&ÆVÒ\a&W\x06÷'G3¢\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒ÷\a&ö&ÆV×2æ‡FÖÀФd\x15\x13¢\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöf\x17\x12ðФFö7VÖVçF\x17F–öã¢\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R\x06–æfó¢\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×\x06ÆPРÐ

             reply	other threads:[~2017-03-02 22:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-02 22:17 sorryforaskingthis.bk.ru via cygwin [this message]
2017-03-02 22:54 ` Yaakov Selkowitz
2017-03-03  0:14 sorryforaskingthis.bk.ru via cygwin
2017-03-03  1:19 ` Yaakov Selkowitz
2017-03-03  1:57   ` Michael Enright
2017-03-03 13:50 ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1488493020.688562858@f125.i.mail.ru \
    --to=cygwin@cygwin.com \
    --cc=sorryforaskingthis@bk.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).