bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trace() help


From: Thomas Dickey
Subject: Re: trace() help
Date: Fri, 7 Jun 2002 05:00:14 -0400
User-agent: Mutt/1.2.5i

On Thu, Jun 06, 2002 at 09:29:51PM -0400, John Bleichert wrote:
> Hello All
> 
> I've downloaded and built ncurses so I could get libncurses_g.a and the 
> trace() function, but my compiler always complains about an "undefined 
> reference to `trace', even if I #define TRACE in the code. Are there any 

The configure script adds modules to the library if it detects TRACE defined,
so they will be built when the library is compiled.  You should be able to
check this by using nm on libncurses_g.a, e.g.,

nm libncurses_g.a |fgrep trace

lib_trace.o:
00000214 T _nc_retrace_int
0000023c T _nc_retrace_ptr
00000270 T _nc_retrace_sp
00000298 T _nc_retrace_win
00000004 D _nc_tputs_trace
000000c4 T _tracef
00000000 T trace
00000004 b tracefp
lib_tracebits.o:
         U _nc_trace_buf
000000ac T _nc_trace_ttymode
00000190 T _nc_tracebits
lib_tracechr.o:
00000000 T _tracechar
         U _nc_retrace_int
         U _nc_trace_ttymode
         U _tracef
         U _tracef
         U _tracef
         U _tracef
trace_buf.o:
00000000 T _nc_trace_buf
trace_tries.o:
000000c0 T _nc_trace_tries
         U _tracef
         U _nc_trace_buf
         U _tracef

Simply defining TRACE in your program won't affect that.

> samples or hints anywhere on how to use this function? The man page doesnt 
> give me enough info, or I'm a putz ;-)
> 
> Also, are there archives of this list anywhere? I have a half-dozen other 
> questions which would probably be answered in an archive set.

The list is archived (look at the mail header):

        List-Archive: <http://mail.gnu.org/pipermail/bug-ncurses/>

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]