From: Tom Z <tomz30@yahoo.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] linkage problem under 2.6.2.1
Date: Thu, 21 Mar 2013 16:33:00 -0500 [thread overview]
Message-ID: <514B7C8C.7030603@yahoo.com> (raw)
In-Reply-To: <5140F1FA.6060205@xenomai.org>
Hi Gilles,
Thanks for your answer. You're right, the order was wrong. After a few
trial&error, I changed to the following order, everything seems work well.
CFLAGS=$(shell $(XENOCONFIG) --skin=native --cflags)
LDFLAGS=$(shell $(XENOCONFIG) --skin=native --ldflags)
gcc $(CFLAGS) main.c $(LDFLAGS) -o main
Sincerely,
Tom
On 3/13/2013 4:39 PM, Gilles Chanteperdrix wrote:
> On 03/13/2013 10:26 PM, Tom Z wrote:
>
>> Hi,
>
> Hi,
>
>> gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__
>> -lnative -L/usr/xenomai/lib -lxenomai -lpthread -lrt -lxenomai ex01.c -o
>> ex01
>
> The link order seems wrong.
>
prev parent reply other threads:[~2013-03-21 21:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-13 21:26 [Xenomai] linkage problem under 2.6.2.1 Tom Z
2013-03-13 21:39 ` Gilles Chanteperdrix
2013-03-21 21:33 ` Tom Z [this message]
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=514B7C8C.7030603@yahoo.com \
--to=tomz30@yahoo.com \
--cc=gilles.chanteperdrix@xenomai.org \
--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.