From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Ashish Budhiraja <ashishmach@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Compiling Library files over Xenomai
Date: Mon, 11 Jul 2011 13:29:43 +0200 [thread overview]
Message-ID: <4E1ADEA7.30003@domain.hid> (raw)
In-Reply-To: <CAG1VJdr9-_WbBTg+L7tAT8+aGOM7oH844F3NfcRmQrHLcCvpAw@domain.hid>
On 07/08/2011 02:10 PM, Ashish Budhiraja wrote:
> Hello Everyone,
>
> I am using Roboard (RB-100) on which I have Xenomai installed. All the
> example files are working fine and
> I have internet through wifi and lan both.
>
>
> Roboard comes with normal C & C++&header files in a folder called
> roboard_lib. These files are for IO, pwm, spi, i2c etc....Actually I am
> having trouble with compiling and linking the roboard_lib files.
>
> If anyone can help me to edit makefile to compile a library please reply.
> Because I tried a lot with the makefile available with examples files, but
> couldn't succeed.
>
> The errors which I am getting:
>
> 1) I think somehow my gcc doesn't accept "bool" so I had to include
> stdbool.h,,,it works now.
> 2) I am getting errors like *undefined reference to "SOMEfunction" *...this
> I think this is because my library files are not compiling.
>
> Thanks a lot ,,,,please guide me through this....if someone can show me
> their MAKEFILE(with library compiled) it would be a great help.
You do not give us any detail, so, I am going to give you a very general
advice, which may, or may not be what you are looking for.
To compile and link xenomai applications, you should use xeno-config to
obtain the flags.
If you are using the posix skin, you should use
xeno-config --skin posix --cflags
to obtain the compilation flags.
and
xeno-config --skin posix --ldflags
to obtain the flags for linking.
--
Gilles.
next prev parent reply other threads:[~2011-07-11 11:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-08 12:10 [Xenomai-help] Compiling Library files over Xenomai Ashish Budhiraja
2011-07-11 11:29 ` Gilles Chanteperdrix [this message]
2011-07-12 8:04 ` Ashish Budhiraja
2011-07-12 8:23 ` Gilles Chanteperdrix
2011-07-12 11:10 ` Ashish Budhiraja
2011-07-12 11:27 ` Gilles Chanteperdrix
2011-07-12 14:19 ` Ashish Budhiraja
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=4E1ADEA7.30003@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=ashishmach@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.