C++ throw in a PhAB application

I have a pre-existing PhAB application. I’m trying to merge in some
working code from another application. I am getting an error on a
‘throw’. What must I add to the makefile to have the compiler allow
a C++ throw?

P.S. The PhAB application is already a C++ application in all other
regards.

Bill Caroselli wrote:

I have a pre-existing PhAB application. I’m trying to merge in some
working code from another application. I am getting an error on a
‘throw’. What must I add to the makefile to have the compiler allow
a C++ throw?

P.S. The PhAB application is already a C++ application in all other
regards.

What is the error saying?

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:bvp0us$5gv$1@inn.qnx.com

I have a pre-existing PhAB application. I’m trying to merge in some
working code from another application. I am getting an error on a
‘throw’. What must I add to the makefile to have the compiler allow
a C++ throw?

What compiler options do you currently have in the makefile? What is the
error message? (-: Just to make absolutely sure: this isn’t under QNX4, is
it? :wink:

Wojtek Lerch <wojtek_l@yahoo.ca> wrote:
WL > “Bill Caroselli” <qtps@earthlink.net> wrote in message
WL > news:bvp0us$5gv$1@inn.qnx.com

I have a pre-existing PhAB application. I’m trying to merge in some
working code from another application. I am getting an error on a
‘throw’. What must I add to the makefile to have the compiler allow
a C++ throw?

WL > What compiler options do you currently have in the makefile? What is the
WL > error message? (-: Just to make absolutely sure: this isn’t under QNX4, is
WL > it? :wink:

There are only two kinds of mistakes. 1) mistakes you can blame on
someone else and 2) stupid mistakes. Unfortunately I can’t blame this
one on anyone else.

The source file in question was writen as a .c file. I renamed it to
…cc and all is well. The hard part was going back and changing all of
the callbacks to fn_name@filename.cc. Maybe it would be nice if there
were a way to globally find and replace callbacks.

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

The source file in question was writen as a .c file. I renamed it to
.cc and all is well. The hard part was going back and changing all of
the callbacks to > fn_name@filename.cc> . Maybe it would be nice if there
were a way to globally find and replace callbacks.

WL > I think there is. Have you tried renaming the file using PhAB’s file list?

No. I’ll try this.

Bill Caroselli wrote:

The source file in question was writen as a .c file. I renamed it to
.cc and all is well. The hard part was going back and changing all of
the callbacks to > fn_name@filename.cc> . Maybe it would be nice if there
were a way to globally find and replace callbacks.

I think there is. Have you tried renaming the file using PhAB’s file list?