<div dir="ltr"><br><div>Hi,</div><div><br></div><div>I'm trying to compile a 64 bit jack application (radium) with mingw-64.</div><div>When I compile it in 32 bit mode, it works fine, but when creating a 64</div><div>bit version, it crashes when calling a jack_* function.</div><div><br></div><div><br></div><div>The same happens when trying to run a simple test program:</div><div><div><br></div><div>"</div><div>#include <jack/jack.h></div><div>int main(){</div><div>  jack_ringbuffer_create(8000); // (Also crashes if callling jack_client_open)</div><div>  return 0;</div><div>}</div></div><div>"</div><div><br></div><div><br></div><div>If I compile it like this (32 bit):</div><div><div><br></div><div>$ i686-w64-mingw32-gcc winjacktest.c -I/home/kjetil/.wine/drive_c/Program\ Files/Jack/includes /home/kjetil/.wine/drive_c/Program\ Files/Jack/lib/libjack.lib</div></div><div><br></div><div>...it works</div><div><br></div><div>But if I compile it like this (64 bit):</div><div><br></div><div>$ x86_64-w64-mingw32-gcc winjacktest.c -I/home/kjetil/.wine/drive_c/Program\ Files/Jack/includes /home/kjetil/.wine/drive_c/Program\ Files/Jack/lib/libjack64.lib<br></div><div><br></div><div>...it crashes.</div><div><br></div><div><br></div><div>I also have a backtrace. The second last frame in the backtrace is the call to "jack_ringbuffer",</div><div>while the last frame shows that an unrelated function is called instead of jack_rinbuffer_create.</div><div>So it seems like either the stack itself is a little bit corrupted, or libjack64.lib sends the program</div><div>further to a random place in the program instead of the libjack64.dll library. The latter might</div><div>be more likely though, since it's the same backtrace every time.</div><div><br></div><div><br></div><div>I've tried installed both the 32 bit and the 64 bit version of</div><div>jack which are available for download at <a href="http://jackaudio.org">jackaudio.org</a>. Same behaviour for both.</div><div><br></div><div>My gcc is a little bit old, but I guess that isn't the reason for the crash:</div><div><br></div><div><div>$ x86_64-w64-mingw32-gcc --version</div><div>x86_64-w64-mingw32-gcc (GCC) 4.7.2 20120920 (Fedora MinGW 4.7.2-7.fc17)</div><div>$ i686-w64-mingw32-gcc --version<br></div><div>i686-w64-mingw32-gcc (GCC) 4.7.2 20120920 (Fedora MinGW 4.7.2-7.fc17)</div><div><br></div></div><div><br></div><div>Thanks for any help. Please let me know if there's anything I should try.</div><div><br></div></div>