update compile.cpp