use g++ to link