From owner-freebsd-multimedia Mon Mar 6 19:48:49 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from charon.ipass.net (charon.ipass.net [198.79.53.8]) by hub.freebsd.org (Postfix) with ESMTP id 7D1F237BED9 for ; Mon, 6 Mar 2000 19:48:46 -0800 (PST) (envelope-from rhh@ipass.net) Received: from stealth.ipass.net. (ppp-1-207.dialup.rdu.ipass.net [209.170.132.207]) by charon.ipass.net (8.9.3/8.9.3) with ESMTP id WAA05463; Mon, 6 Mar 2000 22:48:44 -0500 (EST) Received: (from rhh@localhost) by stealth.ipass.net. (8.9.3/8.8.8) id WAA01932; Mon, 6 Mar 2000 22:50:54 -0500 (EST) (envelope-from rhh) Date: Mon, 6 Mar 2000 22:50:54 -0500 From: Randall Hopper To: Jukka Simila Cc: multimedia@FreeBSD.ORG Subject: Re: help ! Message-ID: <20000306225054.B1716@ipass.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from juksi@iname.com on Mon, Mar 06, 2000 at 10:37:12AM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jukka Simila: |I'm desperate, so I'm mailing this here. Propably not the right place. | |I'm having trouble using XtAppAddTimeOut, and I can't figure it out myself. |Trying to reprogram my curses-based nettimecounter program to use gtk (I want a |neat interface), but I couldn't find a function to set a timer in gtk, so I |use Xt. However: |Whatever I'm trying to do, I'm receiving the following: | |/var/tmp/ccuvD8651.o: In function `TimeOutCB': |/var/tmp/ccuvD8651.o(.text+0x4d7): undefined reference to `XtAppAddTimeOut' |/var/tmp/ccuvD8651.o: In function `main': |/var/tmp/ccuvD8651.o(.text+0x6e5): undefined reference to `XtAppAddTimeOut' Looks like errors linking you executable, right? You didn't say. If so, you need to add "-lXt -lX11" (and maybe "-lXi") to your link line to pull in Xt. |I'm trying to use fxtv's source as a reference, because I can't make |anything sensible out of the manpages. Agreed. The man pages for X/Xt/Xm are far from enough to use these libs. Gotta have the O'Reilly rainbow set handy sometimes. (That's part of the reason I jumped ship for Tkinter and Python.) Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message