Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Mar 2000 10:37:12 +0200 (EET)
From:      Jukka Simila <juksi@iname.com>
To:        multimedia@freebsd.org
Subject:   help !
Message-ID:  <XFMail.000306103712.juksi@iname.com>

next in thread | raw e-mail | index | archive | help
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 <X11/Intrinsic.h>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000306103712.juksi>