Hello
Are you using a special edition of CodeWarrior for HC12 V4.5?
If this is the case you have to keep in mind that you are limited to 1024 bytes of C++ code in your application.
Special edition does not allow unlimited C++ programming. You need the professional edition to get unlimited C++ support.
Also keep in mind that due to the HC12 architecture the compiler does not support full C++, but mainly embedded C++.
You can find a small example of C++ programming in the layout. Look at
{Install}\(CodeWarrior_Examples)\HC12\HC12 SIMULATOR\HC12 C++_Simple
I hope this helps.
CrasyCat