[PD-dev] comport - compilation with mingw

Martin Peach chakekatzil at gmail.com
Sun Feb 26 21:30:35 CET 2017


On Sun, Feb 26, 2017 at 3:10 PM, Roman Haefeli <reduzent at gmail.com> wrote:

> Hey all
>
> I'm trying to cross-compile comport for Windows on Linux and stumbled
> across this error:
>
> i686-w64-mingw32-gcc -DPD -I "/home/roman/.wine/drive_c/Pd//src/" -DMSW
> -DNT     -o comport.o -c comport.c
> comport.c: In function ‘set_break’:
> comport.c:422:29: error: ‘nr’ undeclared (first use in this function)
>      if (status != 0) return nr;
>
> Interestingly, only the compiler that targets Windows complains about
> it. comport compiles fine for all Linux platforms I tried.
>
> Without really understanding what the purpose of the parent function
> 'set_break' is, I went ahead and "fixed" line 422 to:
>
>      if (status != 0) return on;
>
> 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.
>
> Can someone confirm that it was broken before this is the right way to
> address it?
>
> I got comport from:
> http://git.puredata.info/cgit/svn2git/libraries/comport.git/
>
>
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?

I was working here:
https://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/iem/comport/
Is this obsolete now?


> Thanks,
> Roman
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20170226/2eb4a793/attachment.html>


More information about the Pd-dev mailing list