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.



_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to