<div dir="ltr">On Sun, Feb 26, 2017 at 3:10 PM, Roman Haefeli <span dir="ltr"><<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey all<br>
<br>
I'm trying to cross-compile comport for Windows on Linux and stumbled<br>
across this error:<br>
<br>
i686-w64-mingw32-gcc -DPD -I "/home/roman/.wine/drive_c/Pd/<wbr>/src/" -DMSW -DNT     -o comport.o -c comport.c<br>
comport.c: In function ‘set_break’:<br>
comport.c:422:29: error: ‘nr’ undeclared (first use in this function)<br>
     if (status != 0) return nr;<br>
<br>
Interestingly, only the compiler that targets Windows complains about<br>
it. comport compiles fine for all Linux platforms I tried. <br>
<br>
Without really understanding what the purpose of the parent function<br>
'set_break' is, I went ahead and "fixed" line 422 to:<br>
<br>
     if (status != 0) return on;<br>
<br>
I can now compile comport for Windows (and still for Linux) and the resulting binary loads fine, but I'm not able to judge whether this is a sensible fix. I simply tried to address what error message gave me without really knowing what I'm doing.<br>
<br>
Can someone confirm that it was broken before this is the right way to address it?<br>
<br>
I got comport from:<br>
<a href="http://git.puredata.info/cgit/svn2git/libraries/comport.git/" rel="noreferrer" target="_blank">http://git.puredata.info/cgit/<wbr>svn2git/libraries/comport.git/</a><br>
<br></blockquote><div><br></div><div>That sounds familiar. I thought I already fixed that in sourceforge svn, maybe it didn't get copied to git or I forgot to actually commit?<br><br></div><div>I was working here:<br><a href="https://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/iem/comport/">https://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/iem/comport/</a><br></div><div>Is this obsolete now?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks,<br>
Roman<br>
<br>______________________________<wbr>_________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
<a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-dev</a><br>
<br></blockquote></div><br></div></div>