From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA29822 for caml-redistribution@pauillac.inria.fr; Fri, 10 Mar 2000 09:07:40 +0100 (MET) Resent-Message-Id: <200003100807.JAA29822@pauillac.inria.fr> Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA18811 for ; Thu, 9 Mar 2000 14:50:05 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id OAA13964; Thu, 9 Mar 2000 14:49:54 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA06889; Thu, 9 Mar 2000 14:49:51 +0100 (MET) Message-ID: <20000309144951.23102@pauillac.inria.fr> Date: Thu, 9 Mar 2000 14:49:51 +0100 From: Xavier Leroy To: Ravi Chamarty , caml-list@inria.fr Subject: Re: Interfacing C References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1 In-Reply-To: ; from Ravi Chamarty on Sun, Mar 05, 2000 at 05:30:39PM -0600 Resent-From: weis@pauillac.inria.fr Resent-Date: Fri, 10 Mar 2000 09:07:40 +0100 Resent-To: caml-redistribution@pauillac.inria.fr > 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