This page explains some of where to get the source:
https://puredata.info/docs/developer/GettingPdSource
comport.c is at
http://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/iem/comport/comport/
If you're running vanilla, m_pd.h is in the src folder.
You can use one of the Visual Studio versions to compile it as a dll, and you need to export comport_setup in the linker command line:
/EXPORT:comport_setup


Martin



On Thu, Dec 3, 2015 at 12:15 PM, <rolfm@dds.nl> wrote:
comport.c(422) : error C2065: 'nr' : undeclared identifier

trying to compile comport with Visual Studio 2008 i get the above error.
this is without the diff file ( i don't know yet how to use it)

i must confess it's quite an adventure to try to compile (comport) with very little experience.

where to find the actual source?
how to download in the correct form?
which program to use fro compiling and how to get it?
where to find the right version of the 'missing' m_pd.h?

the puredata website is actually not a great help in that.
without google i would still be searching for things.

rolf