Install haxe (whenever it's the latest version or not) and do haxelib install hxcpp. Then, you should be able to just: haxe --main MapGenerator --cpp bin Every time ...