X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Andris Pavenis To: djgpp AT delorie DOT com Subject: Re: Is there any RS232 lib? Date: Fri, 26 Mar 2004 16:36:54 +0200 User-Agent: KMail/1.6.1 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403261636.55335.pavenis@latnet.lv> Reply-To: djgpp AT delorie DOT com On Friday 26 March 2004 11:38, Anthony wrote: > "Andrew Cottrell" ???????/???????? ? > ???????? ?????????: 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