From: ryot AT bigfoot DOT com (George Ryot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Integrate a library Message-ID: <38552861.14552035@news.clara.net> References: <5_v44.9$an3 DOT 186869248 AT newsa DOT telia DOT net> X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 60 Date: Sun, 12 Dec 1999 23:02:26 GMT NNTP-Posting-Host: 195.8.92.12 X-Complaints-To: abuse AT clara DOT net X-Trace: nnrp4.clara.net 945039746 195.8.92.12 (Sun, 12 Dec 1999 23:02:26 GMT) NNTP-Posting-Date: Sun, 12 Dec 1999 23:02:26 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Svensson, Pierre O F" 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