<div dir="rtl"><div dir="ltr">On Ubuntu 14.04 it's not the same location, it's in /usr/lib/gcc and not /usr/lib64/gcc</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">#include <...> search starts here:</div><div dir="ltr"> /usr/include/c++/4.8</div><div dir="ltr"> /usr/include/c++/4.8/x86_64-w64-mingw32</div><div dir="ltr"> /usr/include/c++/4.8/backward</div><div dir="ltr"> /usr/lib/gcc/x86_64-w64-mingw32/4.8/include</div><div dir="ltr"> /usr/lib/gcc/x86_64-w64-mingw32/4.8/include-fixed</div><div dir="ltr"> /usr/lib/gcc/x86_64-w64-mingw32/4.8/../../../../x86_64-w64-mingw32/include</div><div dir="ltr">End of search list.</div><div dir="ltr">GNU C++ (GCC) version 4.8.2 (x86_64-w64-mingw32)</div><div><br></div><div>Can you send the full output of</div><div><br></div><div><div><b>/usr/bin/x86_64-w64-mingw32-g++ -c -v a.cpp </b></div></div><div><br></div><div>where a.cpp is some source file?</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-07-12 16:47 GMT+03:00 İsmail Dönmez <span dir="ltr"><<a href="mailto:ismail@donmez.ws" target="_blank">ismail@donmez.ws</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[snip]<br>
<span class=""><br>
> P.S: The problem on Cygwin side seems to be that my toolchain is<br>
> missing libgcc_s.a and this seems to be working fine since I build the<br>
> whole toolchain as static. Do you think its reasonable to<br>
> conditionally add -lgcc_s depending on it exists or not?<br>
<br>
</span>Honestly though this is non-standard and not worth adding code for.<br>
The situation on Linux is still a regression though :/<br>
<br>
Thanks a lot!<br>
</blockquote></div><br></div>