how to use c++20 / g++ -std=c++11 -o test test.cpp (build.sh❤️파일 만드는법)
build.sh 파일 샘플
// macOS 그냥 실행 안된다
// chmod +x build.sh 으로 파일 권한을 올려주자!!
//build.sh
#!/bin/bash
g++ -std=c++2a main.cpp
g++ -std=c++11 -o test test.cpp
g++ -std=c++20
C++20 기능은 GCC 8부터 사용할 수 있습니다.
C++20 지원을 활성화하려면 명령줄 매개변수를 추가하세요.
-std=c++20
G++ 9 이상 사용
-std=c++2a
또는 C++20 기능 외에 GNU 확장을 활성화하려면 다음을 추가하십시오.
-std=gnu++20
내가 공부하려고 정리
https://github.com/YoungHaKim7/Cpp_Training
GitHub - YoungHaKim7/Cpp_Training: C++ Training & My Youtube Channel - GlobalYoung https://www.youtube.com/@GlobalYoung7
C++ Training & My Youtube Channel - GlobalYoung https://www.youtube.com/@GlobalYoung7 - GitHub - YoungHaKim7/Cpp_Training: C++ Training & My Youtube Channel - GlobalYoung https://www.youtub...
github.com
https://stackoverflow.com/questions/56254591/how-to-add-std-c11-to-make-file
how to add -std=c++11 to make file
I want to add -std=c++11 to my makefile but I do not Where to add, here is my code: hw07: test.o functions.o g++ test.o functions.o -o hw07 test.o: test.cpp headerfile.h g++ -c test.cpp
stackoverflow.com
https://stackoverflow.com/questions/66975491/how-to-use-c-20-in-g
How to use C++ 20 in g++
I am trying to access std::popcount, but it seems like it's only there in C++ 20. When I try compiling with g++ -std=c++20 main.cpp, it says g++: error: unrecognized command line option '-std=c++20...
stackoverflow.com