Version française
Home     About     Download     Resources     Contact us    
Browse thread
Interfacing C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ravi Chamarty <ravi@i...>
Subject: Interfacing C
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