Mail Archives: djgpp/2004/03/26/09:38:01
On Friday 26 March 2004 11:38, Anthony wrote:
> "Andrew Cottrell" <andspam at swiftdsl dot com dot au> ???????/???????? ?
> ???????? ?????????: news:rc0560d7kovmchnmrg77a5edr9kf2tdhr4 AT 4ax DOT com...
>
> > >Could someone please point me at a good C++ class (or lib) that
>
> implements
>
> > >RS-232 data exchange protocol?
> >
> > There are a number of comms libraries in the V2TK directory. I use
> > PMCOM library, but in the past have used a number of others.
> I've downloaded the pmcomm10 package and tried to build the library, but
> got this:
>
> c:\DJGPP\contrib\pmcom>make
> gcc -c -s -O1 -Wall -o rel/com.o com.c
> com.c:285:10: pasting "(" and "0" does not give a valid preprocessing token
> com.c:285:10: pasting "(" and "0" does not give a valid preprocessing token
> com.c:285:10: pasting "[" and "0" does not give a valid preprocessing token
> ... a lot of these on every COMWRAP(.); call in com.c ...
> com.c:326:11: pasting "[" and "15" does not give a valid preprocessing
> token com.c:326:11: pasting "(" and "15" does not give a valid
> preprocessing token com.c: In function `COMHandler':
> com.c:546: warning: type defaults to `int' in declaration of `nLastBit9'
> com.c: At top level:
> com.c:2510: warning: ignoring #pragma argsused
> com.c:2551: warning: ignoring #pragma argsused
> make.exe: *** [rel/com.o] Error 1
>
> How did you deal with it?
Perhaps this version is not compatble with new GCC versions.
One other library is DZCOMM
http://sourceforge.net/projects/dzcomm
(don't ask me more, I haven't touched it already for a rather long time, but
as I remeber, it built with GCC-3.X).
Andris
- Raw text -