<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - mesa-9.1.3: undefined reference to `wglGetProcAddress@4'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91711#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - mesa-9.1.3: undefined reference to `wglGetProcAddress@4'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91711">bug 91711</a>
from <span class="vcard"><a class="email" href="mailto:yugiohjcj@1s.fr" title="YuGiOhJCJ <yugiohjcj@1s.fr>"> <span class="fn">YuGiOhJCJ</span></a>
</span></b>
<pre>OK I found how to solve this problem.
Instead of using the libopengl32.a file provided by mesa I need to use the one
provided by my cross-compiler.
The problem is that my current cross-compiler [1] does not provide the
/usr/i686-pc-mingw32/lib/libopengl32.a file.
So, I have installed a new cross-compiler [2] that does correctly the job.
Now, my cross-compiler already provides a
/usr/i686-pc-mingw32/lib/libopengl32.a file.
So, I should not cross-compiling mesa because it will overrides this file that
will contain incorrect symbols.
The libopengl32.a provided by my new cross-compiler contains the correct
symbols:
$ nm /usr/i686-w64-mingw32/lib/libopengl32.a | grep wglGetProc
00000000 I __imp__wglGetProcAddress@4
00000000 T _wglGetProcAddress@4
The question is why I need to use the library provided by my cross-compiler and
not the one from mesa?
[1] <a href="http://www.mingw.org/">http://www.mingw.org/</a>
[2] <a href="http://mingw-w64.org">http://mingw-w64.org</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>