caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Interfacing C
@ 2000-03-05 23:30 Ravi Chamarty
  2000-03-09 13:49 ` Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Ravi Chamarty @ 2000-03-05 23:30 UTC (permalink / raw)
  To: caml-list

HI,
 When I implement the Advanced example with callbacks given in the OCaml
manual (Pg 184-185), I am getting the following errors while building the
final executable.

$cc -o prog main.c mod.a mod.a(terminfo.o): In function `terminfo_setup':
terminfo.o(.text+0x22): undefined reference to `tgetent'
mod.a(terminfo.o)(.text+0xcf): more undefined references to `tgetstr'
follow mod.a(terminfo.o): In function `terminfo_backup':
terminfo.o(.text+0x186): undefined reference to `tputs'
mod.a(terminfo.o): In function `terminfo_standout':

Can anyone please help me out??

Thanks,
Ravi


----------------------------------------------------------
Ravi S Chamarty                    E-mail: ravi@ittc.ukans.edu
Graduate Research Assistant,       Voice :785-864-7799 
ITTC,2291 Irving Hill Road,                
University of Kansas,
Lawrence KS 66044-7541




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Interfacing C
  2000-03-05 23:30 Interfacing C Ravi Chamarty
@ 2000-03-09 13:49 ` Xavier Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 2000-03-09 13:49 UTC (permalink / raw)
  To: Ravi Chamarty, caml-list

>  When I implement the Advanced example with callbacks given in the OCaml
> manual (Pg 184-185), I am getting the following errors while building the
> final executable.
> 
> $cc -o prog main.c mod.a mod.a(terminfo.o): In function `terminfo_setup':
> terminfo.o(.text+0x22): undefined reference to `tgetent'
> mod.a(terminfo.o)(.text+0xcf): more undefined references to `tgetstr'
> follow mod.a(terminfo.o): In function `terminfo_backup':
> terminfo.o(.text+0x186): undefined reference to `tputs'
> mod.a(terminfo.o): In function `terminfo_standout':
> 
> Can anyone please help me out??

Try adding -lcurses or -ltermcap or -lcurses -ltermcap (depends on
your system) at the end of the cc command line.

- Xavier Leroy



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-03-10  8:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-05 23:30 Interfacing C Ravi Chamarty
2000-03-09 13:49 ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).