Compiler errors on sysLib.h inclusion - VxWorks

This is a discussion on Compiler errors on sysLib.h inclusion - VxWorks ; Hi all
I am trying to write a simple driver for an X86-platform to turn on one
of 8 LEDs on address 0x0300. the toggle() function is something like
void LED::toggle(unsigned char number)
{
status = status ^ (1
sysOutByte(LED_PORT_ADDRESS, ...

Until now (not VxWorks) I have been using _outp() from conio.h, but
this does not seem to be implemented for VxWorks. So I use
sysOutByte().

Now, in order to use sysOutByte, I need to include . When I
do this, I get 100+ compiler errors (examples shown below). The errors
are in files bootLib.h and drv/timer/timerDev.h and seem to be
something with the the symbols IMPORT and STATUS not having been
defined.

I have a "main" cpp file that includes LED.h, which again includes
sysLib.h. What am I doing wrong? I am convinced that it has something
to do with the include files (or their order?) Any help is GREATLY
appreciated, as this is a real showstopper!

Errors:
(btw: The combined use of slashes/backslashes in file names look funny
- is this of importance?)