Or you place somewhere before the linker option

-Wl,--start-group

to tell the linker to iterate several times over the library interdependencies.

Even if gcc doc says different, you actually do not need a -Wl,--end-group 
option.



Best regards,

Daniel Schnell.
 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gilles 
Chanteperdrix
Sent: 4. maĆ­ 2007 13:23
To: Perrine Martignoni
Cc: [email protected]
Subject: Re: [Xenomai-help] Problem to compile for ARM

Perrine Martignoni wrote:
> Hello,
>  
> I have some problems to compile my code Posix for ARM. I have 
> installed xenomai in /usr/xenomai_arm-2.3.1 for ARM.
>  
> Here is my compilation :
> (...)
> -L/usr/xenomai_arm-2.3.1/lib -lpthread_rt -lpthread -lrt  
> essai_mutex_rt.o   -o essai_mutex_rt

The order of arguments on the linker command line is important, this should be:

essai_mutex_rt.o -lpthread_rt -lpthread -lrt

-- 
                                                 Gilles Chanteperdrix

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

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

Reply via email to