Sublime Forum

Want to change build to c++20

#1

So when i run my code sublime is showing finished at bottom, but display no output. i have re-installed my mingw too still no luck.

0 Likes

#2

Are you sure you’ve selected a build system that runs the executable, not just compiles it?

1 Like

#3

i created new output file and it worked i dont know what was the issue. Can you tell me how can i use c++20 in sublime build, currently its c++17.
Here is the build i am using:

{
“cmd”: [“g++.exe”, “-std=c++17”, “${file}”,
“-o”, “${file_base_name}.exe”,
“&&”, “${file_base_name}.exe<inputf.in>outputf.out”],
“shell”:true,
“working_dir”:"$file_path",
“selector”:“source.cpp”
}

0 Likes

#4

Did you try changing the c++17 to c++20?

0 Likes

#5

it show error: g++.exe: error: unrecognized command line option ‘-std=c++20’; did you mean ‘-std=c++03’?

0 Likes

#6

In that case you probably need a newer version of GCC that supports that version of C++.

0 Likes