Compiler Options
Hi all,
I start by apologising for asking what I imagine is a very basic question but it's been driving me nuts all day! I am currently trying to build and compile one of the sample programs - msg_queue.c. I'm using the Code::Blocks IDE with GCC underneath it to compile the program. I have linked in the include directory /usr/xenomai/include but when I compile and link my code I get a load of 'undefined reference' errors relating to all of the xenomai functions. On my old RTAI setup I have never had to link explicitly to any libs only include header files - what am I doing wrong with xenomai?
My setup is 2.6.27 kernel, Xenomai latest stable, Ubuntu 8.10
Apologies again for what I imagine is a very simple question, but it's driving me nuts!
Thanks for your help,
Steve
_________________________________________________________________
Windows Live Messenger just got better .Video display pics, contact updates & more.
http://www.download.live.com/messenger
Hi Steve
Quoted 12 lines · Stephen Davies
Hi all,
I start by apologising for asking what I imagine is a very basic question but it's been driving me nuts all day! I am currently trying to build and compile one of the sample programs -
msg_queue.c. I'm using theCode::BlocksIDE with GCC underneath it to compile the program. I have linked in the include directory/usr/xenomai/includebut when I compile and link my code I get a load of 'undefined reference' errors relating to all of the xenomai functions. On my old RTAI setup I have never had to link explicitly to any libs only include header files - what am I doing wrong with xenomai?
Quoted 9 lines
My setup is 2.6.27 kernel, Xenomai latest stable, Ubuntu 8.10
Apologies again for what I imagine is a very simple question, but it's driving me nuts!
Thanks for your help,
Steve
I haven't compiled the msg_queue.c example, but i do use the native skin with rtdm under Code::Blocks with
Ubuntu 8.04.
To use the Xenomai realtime framework in Code::Blocks IDE,
1. Add these commands to "Project build options", "Compiler settings", "Other options"
/usr/xenomai/bin/xeno-config --xeno-cflags/usr/xenomai/bin/xeno-config --xeno-ldflags
[you can type the commands on the command line without the apostrophes to
get an idea of the output]
2. Under "Project build options", "linker settings" add libraries as required
eg native, rtdm ...
[See /usr/xenomai/lib for available libraries]
3. Under "Project build options", "Search Directories", "Linker" add
/usr/xenomai/lib
Hope this helps to get you going
Keep well
Vicki
Quoted 10 lines
------------------------------
Share your photos with Windows Live Photos - Free Try it Now!<http://www.microsoft.com/uk/windows/windowslive/products/messenger.aspx>_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Quoted 12 lines · Stephen Davies
Hi all,
I start by apologising for asking what I imagine is a very basic question but it's been driving me nuts all day! I am currently trying to build and compile one of the sample programs -
msg_queue.c. I'm using theCode::BlocksIDE with GCC underneath it to compile the program. I have linked in the include directory/usr/xenomai/includebut when I compile and link my code I get a load of 'undefined reference' errors relating to all of the xenomai functions. On my old RTAI setup I have never had to link explicitly to any libs only include header files - what am I doing wrong with xenomai?
Try /usr/xenomai/bin/xeno-config { --xeno-cflags, --xeno-ldflags, etc. }
Quoted 20 lines
My setup is 2.6.27 kernel, Xenomai latest stable, Ubuntu 8.10
Apologies again for what I imagine is a very simple question, but it's driving me nuts!
Thanks for your help,
Steve
------------------------------------------------------------------------
Share your photos with Windows Live Photos - Free Try it Now!
<http://www.microsoft.com/uk/windows/windowslive/products/messenger.aspx>------------------------------------------------------------------------
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.