[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] termcap!!



Peter Gade skrev:

> Hvordan er det nu lige at man får følgende funktioner til at virke??
> tgetenv, tgetstr, tgetstr, tgetnum, tgetnum, tputs, tgoto, tputs
> Jeg får bare at vide at der en "undefined reference to" og så en af de
> ovenstående funktioner??

Det er linkeren der giver fejl, ikke?

Prøv `man ncurses', og du vil se at man skal tilføje -lncurses.
(-ltermcap virker måske også).

For en anden gangs skyld, så prøv at søge bibliotekerne igennem
hvis der er nogle funktioner som skal findes, f.eks sådan:

cd /usr/lib
for i in lib* ; do echo $i ; nm $i|grep tgetstr ; done 2>/dev/null

Hvis den bliver fundet med et 'T', er den god nok:

libncurses.a
00000350 T tgetstr

Hvis der står et 'U' istedet duer den ikke.

T (tekst) betyder at funktionen findes.
U (undef) betyder at funktionen benyttes. Men den er der ikke.

Den direkte vej (hvis man havde vidst det) er:
man ncurses

-- 
torben fjerdingstad        | linux-2.2.10-smp/GNU/gnome-1.0
sslug@sslug        | linux får den op og stå


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *