update host for c++