Hello, World!!! By Joshua Burkholder February 11, 2012 C++, C++ 1998/2003, C++ 2011 3 Comments main.cpp: #include <iostream> int main() { std::cout << "Hello, World!!!\n"; return 0; } Tagged on: C++, C++ 1998/2003, C++ 2011, Code, iostream C++ 2011 → 3 thoughts on “Hello, World!!!” Joshua Burkholder February 12, 2012 at 11:34 am g++ -o main.exe main.cpp -march=native -O3 -Wall -Wextra -Werror && ./main.exe Reply ↓ Joshua Burkholder February 12, 2012 at 11:57 am For C++ 2011 using MinGW’s g++ version 4.6.2: g++ -o main.exe main.cpp -std=c++0x -march=native -O3 -Wall -Wextra -Werror && ./main.exe Reply ↓ Joshua Burkholder December 2, 2012 at 5:05 am For C++ 2011 using MinGW’s g++ version 4.7.2: g++ -o main.exe main.cpp -std=c++11 -march=native -O3 -Wall -Wextra -Werror -static && ./main.exe Reply ↓ Leave a Reply to Joshua Burkholder Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Notify me of follow-up comments by email. Notify me of new posts by email. Δ This site uses Akismet to reduce spam. Learn how your comment data is processed.
Joshua Burkholder February 12, 2012 at 11:34 am g++ -o main.exe main.cpp -march=native -O3 -Wall -Wextra -Werror && ./main.exe Reply ↓
Joshua Burkholder February 12, 2012 at 11:57 am For C++ 2011 using MinGW’s g++ version 4.6.2: g++ -o main.exe main.cpp -std=c++0x -march=native -O3 -Wall -Wextra -Werror && ./main.exe Reply ↓
Joshua Burkholder December 2, 2012 at 5:05 am For C++ 2011 using MinGW’s g++ version 4.7.2: g++ -o main.exe main.cpp -std=c++11 -march=native -O3 -Wall -Wextra -Werror -static && ./main.exe Reply ↓
g++ -o main.exe main.cpp -march=native -O3 -Wall -Wextra -Werror && ./main.exe
For C++ 2011 using MinGW’s g++ version 4.6.2:
g++ -o main.exe main.cpp -std=c++0x -march=native -O3 -Wall -Wextra -Werror && ./main.exe
For C++ 2011 using MinGW’s g++ version 4.7.2:
g++ -o main.exe main.cpp -std=c++11 -march=native -O3 -Wall -Wextra -Werror -static && ./main.exe