can't find libcpp.so.2

I compile one programme with “QCC xx.c -o xx”,but when i run it,it said “can’t find the libcpp.so.2”,I wonder which part of my programme need the library,because before I can compile and run it,there’s not the warning message.

You use QCC ( capital ) that means you are using the C++ compiler to compile a C program.

the reason is that the programme does’t have c++ characteristic,Is it right?instead i should use qcc

It`s up to you. You can if you want compile a C program with the C++ compiler. I often do that, you get better typecast and are close to moving for C++ if that is a long term goal for you.

But the problem has nothing to do with the fact that it is not a C++ program. For some reason the libcpp.so.2 library isn`t available on the target.