Windriver Workbench 3.0 Download

Active2 years, 10 months ago

3| Wind River Workbench 3.3 Linux File System Configurator: This provides fine-granular control over what goes onto the target and the ability to. Download Wind River Workbench. The Wind River Workbench On-Chip Debugging's powerful IDE-based diagnostic capabilities unlock the power of the enterprise class, multicore enabled Wind River ICE 2 network-based JTAG emulator, and the portable Wind River Probe USB-based JTAG. Return to windriver.com. Board Support Packages Vendor: NXP (Freescale). VxWorks: 6.6 - Wind River Workbench 3.0: Freescale MPC74xx: MPC7448: Freescale HPC-II.

In Visual Studio 2010, I was able to build enumeration with datatype just fine.

However, when I tried to compile in WR Workbench, I get the following error:

: error: use of enum 'FRUIT_E' without previous declaration

I really need to specify the datatype of enum as fields are bitpacked. Is there any way I could explicitly specify the type of enumeration?

WindriverTrevor HickeyWind river workbench download
17.6k16 gold badges102 silver badges202 bronze badges
JustinJustin

1 Answer

The short answer to your question is no.

The ability to define a base type for enumerations is a language feature that was not added until C++11 (http://en.cppreference.com/w/cpp/language/enum). Unfortunately, WindRiver has been slow to support compilers that comply with modern C++ standards (C++ 11 in vxworks). There is mention of support for C++11 in commercial versions of g++ for VxWorks 7.0+ (https://stackoverflow.com/a/36311473). But, your WorkBench version (<4.0) implies that this won't be helpful to you.

Wind River Workbench 3.3 Download

In your situation, I might cobble together a work-around, such as this:

However, this won't provide type safety, as FRUIT_T is just an alias for UINT16. So, it's far from ideal. I've added tags to your question. There may be better work-arounds, emulating the desired behavior more closely. But, the addition of a new language feature would seem to indicate that existing methods were inadequate.

Windriver Workbench 3.0 Download
Community

3.0 Firmware Download

Cliff BilbreyCliff Bilbrey

Wind River Workbench Tutorial

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Wind River Workbench

Not the answer you're looking for? Browse other questions tagged c++c++11vxworkswind-river-workbench or ask your own question.