From owner-freebsd-multimedia Mon Mar 6 0:37:40 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from vihta.saunalahti.fi (posti.saunalahti.fi [195.74.0.45]) by hub.freebsd.org (Postfix) with ESMTP id 5F6CD37BC88 for ; Mon, 6 Mar 2000 00:37:36 -0800 (PST) (envelope-from juksi@iname.com) Received: from sjukebox (MMMDCCCX.hdyn.saunalahti.fi [195.197.164.210]) by vihta.saunalahti.fi (8.9.1/8.9.1) with ESMTP id KAA19615 for ; Mon, 6 Mar 2000 10:30:40 +0200 (EET) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Mon, 06 Mar 2000 10:37:12 +0200 (EET) From: Jukka Simila To: multimedia@freebsd.org Subject: help ! Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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' relevant source-code lines: #include XtAppContext app_context; XtIntervalId main_timer; unsigned long interval=1000; void TimeOutCB(XtPointer cl_data, XtIntervalId *timer) { main_timer=XtAppAddTimeOut(app_context, interval, TimeOutCB, NULL); } int main(int argc, char *argv[]) { XtAppAddTimeOut(app_context, interval, TimeOutCB, NULL); } What am I missing here? I'm trying to use fxtv's source as a reference, because I can't make anything sensible out of the manpages. If this info in this mail isn't enough, could you please point me to a port that happens to use Xt. Fxtv is a bit too complicated to use as a help for a single function.. @-`--,--`--- Jukka Simila To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message