Mail Archives: djgpp/2001/03/31/15:47:31
"chiumac" <chiumac AT yahoo DOT com DOT hk> wrote:
> C:\djgpp\author\CONTRIB\SVASYNC>gcc term.c -o term.exe -lsv
This is the correct command line (you don't need -lpc like is used in the
makefile), but it is wise to add -Wall there too.
> c:/djgpp/bin/ld.exe: cannot open -lsv: No such file or directory (ENOENT)
>
> Why is that? Do I miss something?
Yep, you missed the instructions for building and installing the library
from source. Curiously, those instructions do not seem to exist! :-/
Also curious is why this library has the suffix 'b'?
Anyhow, to build and install svasync: cd to the directory where you
unzipped the files to (there are 7 files in total), run make, and then
copy the header and library into the djgpp tree.
C:\>cd \djgpp\contrib\svasync
C:\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
C:\djgpp\contrib\SVASYNC>cp svasync.h \djgpp\include\
C:\djgpp\contrib\SVASYNC>cp libsv.a \djgpp\lib\
- Raw text -