diff --git a/std-script/compile b/std-script/compile --- a/std-script/compile +++ b/std-script/compile @@ -77,6 +77,10 @@ exit(127) end +if params[:prog_lang]=='cpp': + params[:prog_lang] = 'c++' +end + # Compile. case params[:prog_lang] @@ -85,7 +89,6 @@ system(command) when "c++" - when "cpp" command = "#{CPLUSPLUS_COMPILER} #{params[:source_file]} -o #{params[:output_file]} #{CPLUSPLUS_OPTIONS} 2> #{params[:message_file]}" system(command)