I guess the work around would be to change the cpp file to a c file then changing it back to a cpp file using F2(rename) after you have made the changes in .ioc
I would also like to know this, I'm using a library that is C++ and you can change the main.c to main.cpp but if you have some functionality in main.cpp already it's a bit of a pain..