QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Writing callbacks for C++ applications |
Ref. No. |
QNX.000009103 |
Category(ies) |
Development |
Issue |
C++ code in PhAB is renamed to .cc, but every time 'generate' is called in PhAB, it generates a bunch of template files with a .c extension instead of automatically generating template files with a .cc as expected. |
Solution |
The default source code file extension that PhAB generates is a standard c '.c' file. When the files are renamed to .cc, PhAB doesn't see them, and assumes it must regenerate them, which is why there are new template files. To fix this, when you are writing callbacks, use this convention: x09my_callback@my_code.cc
|
|