Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

g++ how to compile c++ 17

g++ source_file.cpp -o executable_name -std=c++11 // for C++11
g++ source_file.cpp -o executable_name -std=c++14 // for C++14
g++ source_file.cpp -o executable_name -std=c++17 // for C++17
g++ source_file.cpp -o executable_name -std=c++2a // for C++20
 
PREVIOUS NEXT
Tagged: #compile
ADD COMMENT
Topic
Name
7+7 =