Re: Interfacing C

From: Xavier Leroy (Xavier.Leroy@inria.fr)
Date: Thu Mar 09 2000 - 14:49:51 MET

  • Next message: Didier Remy: "Re: typing of a class"

    > 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



    This archive was generated by hypermail 2b29 : Fri Mar 10 2000 - 09:14:03 MET