Error compiling <hw/inout.h> using CodeWarrior C++

[Best viewed using a fixed-width font, e.g. Courier]


Hi,

I have MetroWerks CodeWarrior IDE version 4.0.7 Build 0561
with Neutrino Development System Pre-Release 4 - April 2000

I create a new project, x86 stationary, C++

I add #include <hw/inout.h> to the main.cpp which now looks like this:

#include <hw/inout.h>

#include

int main(void)
{
cout << “Hello C++ World” << endl;
}


When I compile it, I get the errors:


Warning : In file included from d:\qnxsdk\qnx\neutrino\usr\nto\include\hw/inout.h:16,


Warning : from E:\AA\proj\tst\inout\main.cpp:1:


Error : parse error before `attribute
inout.h line 90

Error : parse error before `attribute
inout.h line 95

Error : parse error before `attribute
inout.h line 100

Error : parse error before `attribute
inout.h line 119

Error : parse error before `attribute
inout.h line 124

Error : parse error before `attribute
inout.h line 129


Any ideas?
Thanks!
Alain Achkar

I have MetroWerks CodeWarrior IDE version 4.0.7 Build 0561
with Neutrino Development System Pre-Release 4 - April 2000

I create a new project, x86 stationary, C++

I add #include <hw/inout.h> to the main.cpp which now looks like this:

We ended up commenting out the offending lines, since we haven’t ever
needed them…

Also, there is a problem with the “neutrino.h” file in the PPC directory.
It
has a __BEGIN_DECLS at the end instead of __END_DECLS.

Kevin

Thanks Kevin!

I guess, I’ll have to delete the offending lines until I get the upgrade to
Neutrino 2.11

Alain.

“Kevin Radke” <kradke@dsi-inc.net> wrote in message
news:9ku2rf$9sh$1@inn.qnx.com

I have MetroWerks CodeWarrior IDE version 4.0.7 Build 0561
with Neutrino Development System Pre-Release 4 - April 2000

I create a new project, x86 stationary, C++

I add #include <hw/inout.h> to the main.cpp which now looks like this:

We ended up commenting out the offending lines, since we haven’t ever
needed them…

Also, there is a problem with the “neutrino.h” file in the PPC directory.
It
has a __BEGIN_DECLS at the end instead of __END_DECLS.

Kevin