Obtain Proto.h syntax error when include C++ files

I’ve included C++ files into PhAB project and abmain.cc is generated. The
C++ files are referenced in the indH,O,Sfiles. I removed all preprocessor
directives and still get the following error.

"proto.h:11 syntax error before ‘::’.

proto.h line 11 is:

void C_DisplayManager::DisplayManagerThread(void);

This error is reported for all of my class methods. If edit proto.h and
remove the error lines I can compile succfully. However, when I issue
Generate the proto.h is recreated and error condition is repeated. It
looks like and reference to a class and method header is a syntax error
“C_xxxx::method()” it always complains of ::

Is there a way to remove this error other than manually editing the
proto.h after each generate??

Thanks

Pete Torpey <peter.a.torpey@boeing.com> wrote:

Is there a way to remove this error other than manually editing the
proto.h after each generate??

You should tell PhAB not to generate proto.h, because it doesn’t work
with C++. Here’s how:

To suppress the generation of prototypes in proto.h:

  1. Press F2 or from the Project menu, choose Properties to open the
    Project Properties dialog.
  2. Click the Generate Options tab.
  3. Disable the Scan Source Files for Prototypes option.

    \

Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Steve:

You mentioned
Press F2 or from the Project menu, choose Properties to open the

Project Properties dialog.

F2 maps to the Application->Startup Info/Modules There is no selection for
Properties.

I’m running PhAB and have selected my project but I do not see the
Properties reference? I’m running App Builder version 2.01

After I select project the menu selections are:
File Edit View Options Applications Window Help

Where can I obtain Project Properties in PhAB?

Pete Torpey wrote:

Found reference in the App startup Info dialog under Generate Options.

Steve, Thanks for your help

Pete

Pete Torpey <peter.a.torpey@boeing.com> wrote:

Pete Torpey wrote:

Found reference in the App startup Info dialog under Generate Options.

Steve, Thanks for your help

I’m glad you found it – I gave you the instructions for version 6.3. :frowning:


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems