made c++ file compilable