On 01/08/2012 11:35 PM, Jakub Nowacki wrote:
> On 08/01/12 22:09, Philippe Gerum wrote:
>> References should precede definitions. Try swapping libxenomai.so and
>> libnative.so in your link order. As Gilles already suggested, using the
>> xeno-config script in your Makefile to get the proper link flags would
>> have prevented this issue.
>>
> Thanks for the answer. The problem is I do not have just a Makefile but 
> it is generated with autotools. In autotools xeno-config is used but 
> apparently order is not OK.

The flag returned by xeno-config are in the right order if you use the
"new" syntax that is --skin=native --ldflags instead of the "old" syntax
--xeno-ldflags which required you to add -lnative -lxenomai by hand.

Another solution, since xenomai 2.6.0, is to use pkg-config. How to use
pkg-config with the autotools is described here, for instance:

http://bec-systems.com/site/121/autotools-quick-reference

The name of xenomai .pc files are libxenomai_skin, so libxenomai_native
for the native skin, or libxenomai_posix for the posix skin.

-- 
                                                                Gilles.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to