<div dir="ltr"><pre>Try installing with : winetricks vcrun6 , and then set msvcrt.dll to native in your winecfg</pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 12:59 PM, A B <span dir="ltr"><<a href="mailto:dianaxxyyzz@gmail.com" target="_blank">dianaxxyyzz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello , <br><br></div>Have you tried to compile the code using the winelib ?<br></div>Are you using the windows msvcrt.dll or a msvcrt compiled for linux?<br></div>You can  try with a msvcrt.dll that you get from a windows  os.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 12:29 PM, Fabian Wein <span dir="ltr"><<a href="mailto:fabian.wein@fau.de" target="_blank">fabian.wein@fau.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
we have a own C++ code running usually on Linux and OS X. The code is known to run on Windows compiled natively. It is a text-based academic code (Finite-Element) using some Fortran Libs compiled with the cross-compiler and Intels MKL.<br>
<br>
Now I cross-compile the code using mingw 6.2.0 from openSUSE. We have a testsuite for our code with 150 complete test runs (the whole application runs with different input).<br>
Out of these about 70 fail and the most common error (40) is of this type.<br>
<br>
ERROR: RV=1 : fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x01b6 ignored<br>
err:seh:setup_exception stack overflow 1712 bytes in thread 0026 eip 000000007bc654c9 esp 0000000000130f50 stack 0x130000-0x131000-0x330000<br>
<br>
Any hints? Links? Apporaches to debug the stuff?<br>
<br>
It runs on openSUSE tumbleweed with wine-1.9.20<br>
<br>
Thanks<br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>