proto bug

I have a PhAB application that is written in C++;

In one of the source monules I have defines a class that is only
needed within that source module; I have a defined the constructor
and destructor in that source module too; Every time I do a PhAB
generate it rebuilds the proto.h file; But the proto.h file is
including the prototype for the constructor & destructor;

When I go to do the make I get:

In file included from …/abmain.cc:38:
…/proto.h:5: syntax error before ::' .../proto.h:6: syntax error before ::’
cc: /usr/lib/gcc-lib/ntox86/2.95.3/cc1plus error 33
make[1]: *** [abmain.o] Error 1

Lines 5 & 6 read as follows:

calib_LC_record::calib_LC_record ( const char *description ,
time_t when_calib , double d1 , double d2 );
calib_LC_record::~calib_LC_record ( void );

How do I fix this?

Wojtek Lerch <Wojtek_L@yahoo.ca> wrote:
WL > Bill Caroselli wrote:

I have a PhAB application that is written in C++;

In one of the source monules I have defines a class that is only
needed within that source module; I have a defined the constructor
and destructor in that source module too; Every time I do a PhAB
generate it rebuilds the proto.h file; But the proto.h file is
including the prototype for the constructor & destructor;

How do I fix this?

WL > Disable the prototype generator – it’s incompatible with C++. There’s
WL > a toggle button in the F2 dialog that does it.

This worked. Thank you.


Will it ever be fixed to just ignore function names with “::”?

Bill Caroselli wrote:

I have a PhAB application that is written in C++;

In one of the source monules I have defines a class that is only
needed within that source module; I have a defined the constructor
and destructor in that source module too; Every time I do a PhAB
generate it rebuilds the proto.h file; But the proto.h file is
including the prototype for the constructor & destructor;

How do I fix this?

Disable the prototype generator – it’s incompatible with C++. There’s
a toggle button in the F2 dialog that does it.

Bill Caroselli wrote:

Wojtek Lerch <> Wojtek_L@yahoo.ca> > wrote:
WL > Disable the prototype generator – it’s incompatible with C++. There’s
WL > a toggle button in the F2 dialog that does it.

This worked. Thank you.

Will it ever be fixed to just ignore function names with “::”?

I wouldn’t count on it. If we did that, people would start thinking
that it supports C++, and insisting that it should recognize more and
more C++ constructs…