Photon and C++

Hi…

I am porting my libraries from QNX4 and Photon 1.14 to the QNX RTP
platform. I write my code in C++, and I have successfully ported my
libraries to RTP.

My Photon applications use my libraries (which are now ported, compiled,
run and verified under QNX RTP). However, when I make a simple “Hello”
test program which includes my C++ code (just because I want to test
that Photon can handle my code), Photon fails to compile. Photon comes
back saying that I can not parse the code… the same code that
compiles and runs under QRTP.

I know that somewhere someone asked a question similar to this, but I
can not find the answer. I vaguely recall that those answers indicated
that we should modify the make. Pardon me, but I cannot recall what the
modifications were… :frowning:

Please, I wonder if somebody could bear my lack of knowledge and point
me to the right place where I could find this one answer?? I seem not
to be able to find the answer in the knowledge database.

Best Regards…

Miguel

The thing I had to do was modify the Makefile generated by PhAB in the
target directory and add a line “CXX = qcc”.

This is because the provided makefiles appear to not define a C++ compiler,
so it defaults to gcc. This doesn’t work since PhAB generates command line
switches compatible only with qcc.

Hope this helps.

– Kevin

“Miguel Simon” <simon@ou.edu> wrote in message
news:3A0DB92E.A32CE875@ou.edu

Hi…

I am porting my libraries from QNX4 and Photon 1.14 to the QNX RTP
platform. I write my code in C++, and I have successfully ported my
libraries to RTP.

My Photon applications use my libraries (which are now ported, compiled,
run and verified under QNX RTP). However, when I make a simple “Hello”
test program which includes my C++ code (just because I want to test
that Photon can handle my code), Photon fails to compile. Photon comes
back saying that I can not parse the code… the same code that
compiles and runs under QRTP.

I know that somewhere someone asked a question similar to this, but I
can not find the answer. I vaguely recall that those answers indicated
that we should modify the make. Pardon me, but I cannot recall what the
modifications were… > :frowning:

Please, I wonder if somebody could bear my lack of knowledge and point
me to the right place where I could find this one answer?? I seem not
to be able to find the answer in the knowledge database.

Best Regards…

Miguel