can't reslove compile convert c to cpp