Skip to contentSkip to conversation

C++ Support for VxWorks Skin of Xenomai?

Xenomai-core Wu, John 3 participants 3 messages Mar 1, 2006

lore
Share & tools
lore

Wu, John

author
#0 lore raw

Jan,

We don't know how to compile the VxWork skin of xenomai to support C++ code. We need some help!

Thanks,

John

-----Original Message-----
From: [email protected] [mailto:[email protected]
Sent: Tuesday, February 28, 2006 3:58 AM
To: Wu, John
Cc: [email protected]; Chau, Ngaiman
Subject: Re: [Xenomai-core] C++ Support for VxWorks Skin of Xenomai?

Quoted 8 lines · John

We at Xerox El Segundo, Calif are new user of VxWork Skin of Xenomai. We successfully brought up VxWork skin of xenomai 2.0.1on x86 platform

and ran VxWork test program in C.

The question we have is how to build and compile the VxWork skin of xenomai to support C++ code?

Did you already try to compile some C++ program against the VxWorks headers of Xenomai? Kernel or user space? Did you notice any problems? Then please post the compiler output or even a demo code.

Jan

#1 lore raw
Quoted 4 lines · John

Jan,

We don't know how to compile the VxWork skin of xenomai to support C++ code. We need some help!

Unless we are missing something, there is no need to compile vxworks skin in a special way in order to support C++ code.

Xenomai vxworks skin functions are declared extern "C" in vxworks/vxworks.h when it is included in C++ code.
So, if you want to call vxworks function from C++ code, all you have to do is to include vxworks/vxworks.h.

Signature · 1 line
					    Gilles Chanteperdrix.
#2 lore raw
In reply to Wu, John
Quoted 5 lines · John

Jan,

We don't know how to compile the VxWork skin of xenomai to support C++ code. We need some help!

Sorry, I still don't get your problem. Regarding compiling and linking, there should be nothing special about C++ vs. C and Xenomai's VxWorks skin (bugs aside). It's like compiling your C++ code against any kind of (C-)library.

Please report concrete problems when trying to do this ("I ran this command and got that error"). Otherwise, no one can help you.

Jan