All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Häberle" <thomas.haeberle@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] problem with trivial-periodic.c example
Date: Fri, 04 Apr 2008 12:01:36 +0200	[thread overview]
Message-ID: <47F5FC80.3060603@domain.hid> (raw)

Hello!

I am running Xenomai 2.3.5 on my MPC5200S on a STK52xx with a Linux 
2.4.25-DENX kernel (cross-compiling to the target).

When I try to compile the "trivial-periodic.c" example with
 >>> $ ppc_6xx-gcc SimpleTask.c -I $XENOINSTALL/include -L 
$XENOINSTALL/lib -o SimpleTask -Wall

I get the following:
 >>>
/tmp/ccwxJiOz.o(.text+0x30): In function `demo':
: undefined reference to `rt_task_set_periodic'
/tmp/ccwxJiOz.o(.text+0x34): In function `demo':
: undefined reference to `rt_timer_read'
/tmp/ccwxJiOz.o(.text+0x4c): In function `demo':
: undefined reference to `rt_task_wait_period'
/tmp/ccwxJiOz.o(.text+0x50): In function `demo':
: undefined reference to `rt_timer_read'
/tmp/ccwxJiOz.o(.text+0x160): In function `main':
: undefined reference to `rt_task_create'
/tmp/ccwxJiOz.o(.text+0x178): In function `main':
: undefined reference to `rt_task_start'
/tmp/ccwxJiOz.o(.text+0x188): In function `main':
: undefined reference to `rt_task_delete'
collect2: ld returned 1 exit status
<<<

Aren't the functions used in the example in the libraries in the 
"$XENOINSTALL/lib" directory?
Or do I have to tell the compiler and/or linker about any of the Xenomai 
source paths to get this working?

Thanks & Greetings,
Thomas


             reply	other threads:[~2008-04-04 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 10:01 Thomas Häberle [this message]
2008-04-04 10:12 ` [Xenomai-help] problem with trivial-periodic.c example Wolfgang Grandegger
2008-04-04 10:29 ` Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47F5FC80.3060603@domain.hid \
    --to=thomas.haeberle@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.