Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Problem <strong>A</strong> is harmless but I've added an additional cast to remove the warning. Problems <strong>B</strong> and <strong>C</strong> are due to two bugs in GLFW. They have now been fixed, in part thanks to this thread. Thanks for posting it to the GLFW bug tracker and so bringing them to my attention. The fixes will be included in the 2.7.6 release. Until then, you can grab trunk from the <a href="https://sourceforge.net/scm/?type=svn&amp;group_id=72569" rel="nofollow">GLFW Subversion repository</a>.</p> <p>Problem <strong>C</strong> was tricky enough to solve that someone may find a summary useful.</p> <p>Proper linking for 32-bit requires a .def file with <code>__stdcall</code> decorated symbols, but this file cannot be used for 64-bit. The solution was to have GCC generate the correct .def file for the given architecture.</p> <p>This is done by linking the DLL twice. First it's linked as exporting <code>__stdcall</code> decorated symbols (the default) and generating the .def file (using <code>-Wl,--output-def,file.def</code>) and then it's linked again without decorations (using <code>--kill-at</code>) to produce the final DLL. This generated .def file can then be used as usual with <code>dlltool</code> to generate the import library.</p> <p>The most useful resource I found whilst researching this was <a href="http://www.willus.com/mingw/yongweiwu_stdcall.html" rel="nofollow">Stdcall and DLL tools of MSVC and MinGW</a>, which among other things outlines this method.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload