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
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... 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
If you open the diff file in notepad++ it will highlight the lines to be removed in red and the ones to be added in green. The line numbers in blue show the region of the file to be changed, and nearby lines that don't change are in white. So you can manually replace the red lines in comport.c with the green ones from the diff file.
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
LINK : fatal error LNK1181: cannot open input file 'C:\Programme\Microsoft Visual Studio\Vc98\lib\libc.lib'
above the next error. VC 2008 doesn't have a libc.lib.
libc.lib is the first in a list in the makefile_win.
$(VIS_CPP_PATH)\lib\libc.lib
$(VIS_CPP_PATH)\lib\oldnames.lib
$(VIS_CPP_PATH)\lib\kernel32.lib
$(VIS_CPP_PATH)\lib\wsock32.lib
$(VIS_CPP_PATH)\lib\winmm.lib
$(PD_INST_PATH)\bin\pthreadVC.lib
$(PD_INST_PATH)\bin\pd.lib
i guess some of these are not included either.
rolf
Martin Peach schreef op 03-12-2015 19:11:
If you open the diff file in notepad++ it will highlight the lines to be removed in red and the ones to be added in green. The line numbers in blue show the region of the file to be changed, and nearby lines that don't change are in white.
So you can manually replace the red lines in comport.c with the green ones from the diff file.
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
so far so good
after a lot of fruitless searching for the right answers i took the liberty to change the makefile_win.
$(VIS_CPP_PATH)\lib\libc.lib \
$(VIS_CPP_PATH)\lib\oldnames.lib \
$(VIS_CPP_PATH)\lib\kernel32.lib \
$(VIS_CPP_PATH)\lib\wsock32.lib \
$(VIS_CPP_PATH)\lib\winmm.lib \
i did away with the ones above.
$(PD_INST_PATH)\bin\pthreadVC.lib \
$(PD_INST_PATH)\bin\pd.lib
these 'local' ones i took from one of the latest Vanilla's (46.7).
no compile errors!
replacing the old comport.dll in pdext 43.4 with the new-compiled one: TADA it seems to work.
data is coming through, and no rxerrors.
minor point probably: i don't get a console message when a port is opened succesfully. the close message disappeared also.
more extensive testing/use will follow in the coming days.
thanks, rolf
On Mon, Dec 7, 2015 at 2:46 PM, rolfm@dds.nl wrote:
so far so good
after a lot of fruitless searching for the right answers i took the liberty to change the makefile_win.
$(VIS_CPP_PATH)\lib\libc.lib \ $(VIS_CPP_PATH)\lib\oldnames.lib \ $(VIS_CPP_PATH)\lib\kernel32.lib \ $(VIS_CPP_PATH)\lib\wsock32.lib \ $(VIS_CPP_PATH)\lib\winmm.lib \
i did away with the ones above.
$(PD_INST_PATH)\bin\pthreadVC.lib \ $(PD_INST_PATH)\bin\pd.lib
these 'local' ones i took from one of the latest Vanilla's (46.7).
no compile errors!
replacing the old comport.dll in pdext 43.4 with the new-compiled one: TADA it seems to work.
data is coming through, and no rxerrors.
Sounds good!
minor point probably: i don't get a console message when a port is opened succesfully. the close message disappeared also.
Send a [verbose 1{ message to [comport] to get console printout.
more extensive testing/use will follow in the coming days.
thanks, rolf
I'll update the svn repository with the new version.
Martin