Mail Archives: djgpp/1999/12/08/03:09:27
On 8 Dec 99, Gaurang Kanvinde was found to have commented thusly:
> > nowhere in the documentation have i come accross a help section for
> > curses.h
> >
> > i want to know how to compile and link files when using curses.h
> > the good old linux staement       gcc filename.c -lcurses   or     gcc
> > filename.c -lncurses  doesn't work here. i have downloaded the whole pdc
> > distributiion (zip file) from djgpp server.  i didn't find any answer
> > there either. hence this call for help to u.
> 
> bye,
> gaurang.
Probably you neglected to make (build) the curses library itself first.  
Go to the directory where you'd find the makefile or look at the 
documentation for how to build curses.  It may be the case you can find an 
already precompiled library, but it's a safer route to build it yourself.
Then try your 'gcc myfile. -lxxx' command line, where 'xxx' conforms to 
the pattern 'libxxx.a', which is the curses library you built.
As for interfacing with the curses functions (you want to code using 
them?), it's a sorry distribution that doesn't provide you the 
documentation to the interface.  Anyway, if you don't have access to a 
commercial Unix system and its manual or online manual, you can try the 
web: there are a few sites that provide something like a "Unix Reference 
Center."  Curses is fairly well "standardized."
---------------------------------------------------------
M. Halloran
other privileged title:   obedient father to 3 year old Sequoia
- Raw text -