Mail Archives: djgpp/1999/12/12/19:46:55
"Svensson, Pierre O F" <pierre DOT svensson AT savsjo DOT mail DOT telia DOT com> wrote:
> Hi! I have loaded down the library svasync, but failed to integrate it
> with Djgpp.
> I have never done this before and would be grateful if someone could give
> some instructions.
Unzip the file svasync.zip somewhere, into the DJGPP tree is ok.
Ideally you need the GNU make utility to build the library, you should
install mak377b.zip if you need it.
Change to the directory where you installed svasync and run make:
D:\DJGPP\CONTRIB\SVASYNC>make
gcc -O3 -Wall -g -c svasync.c
gcc -O3 -Wall -g -c isr.S
ar -rs libsv.a svasync.o isr.o
gcc -O3 -Wall -g -c term.c
gcc -O3 -Wall -g term.o libsv.a -o term -lpc
Copy the header file and the library to the correct places:
D:\DJGPP\CONTRIB\SVASYNC>copy svasync.h d:\djgpp\include\*.*
1 file(s) copied
D:\DJGPP\CONTRIB\SVASYNC>copy libsv.a d:\djgpp\lib\*.*
1 file(s) copied
And that is it, svasync is installed! :-)
To test it, copy the demo program to another directory and compile it
from there (this will prove the library and header can be found):
D:\DJGPP\CONTRIB\SVASYNC>copy term.c d:\tmp
1 file(s) copied
D:\DJGPP\CONTRIB\SVASYNC>cd \tmp
D:\Tmp>gcc -Wall term.c -o term -lsv
The demo program is hardcoded to COM2, so test with a modem on that
port or edit term.c for COM1.
D:\Tmp>term
Demo-Term. Press F10 to Quit.
at
OK
D:\Tmp>
Hope that helps.
If you try out the other async comms libraries available for DJGPP, I
would be interested to know how you find they compare. Both in ease
of installation and use.
--
george
- Raw text -