C++ Sublime Text Build Systems

C++ sublime build system to build and run C++ applications is as below.

{
"cmd" : ["g++ -Wall ${file_name} -o ${file_base_name} && ./${file_base_name}"],
"selector" : "source.c",
"shell": true,
"working_dir" : "$file_path"
}

C++11 sublime build system to build and run C++11 applications is as below.

{
"cmd" : ["g++ -std=c++11 -Wall ${file_name} -o ${file_base_name} && ./${file_base_name}"],
"selector" : "source.c",
"shell": true,
"working_dir" : "$file_path"
}

C++11 OpenMP sublime build system to build and run OpenMP applications is as below.

{
"cmd" : ["g++ -std=c++11 -Wall ${file_name} -fopenmp -o ${file_base_name} && ./${file_base_name}"],
"selector" : "source.c",
"shell": true,
"working_dir" : "$file_path"
}

Note: You can remove -Wall option if you dont want to see all warnings.

Comments

Popular Posts