Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualStroppy Katamari

Posted 30 October 2012 - 04:24 PM

First, I reiterate you'll definitely want to use C++11, even more so if you want to keep things 'regular'. If you try to keep your code conforming to the ancient C++98 standard, you'll need to use much more nonstandard libraries like Boost to accomplish basic things that in C++11 are in the standard library, and there's really no reason to do that.

The tools you get in MinGW are the most standard, best documented stuff you can find. Initially you just need to use the gcc compiler, but you'll also have the gdb debugger and make build tool waiting for you for later.
With gcc installed, you'll want to use
g++ -Wall -Wextra -std=c++11 -o hello.exe hello.cpp
to compile your Hello World. If the gcc is slightly older version, you'll need to use -std=c++0x instead of -std=c++11.

As for editors, Notepad is terrible. At the least, use Notepad++ or equivalent. The heavy hitters, Vim (my favorite) and Emacs are great but take some learning to use. Sublime Text is both easy and powerful, but is only free for evaluation, and continued use requires buying a license. The license is cheap, though.

#2Stroppy Katamari

Posted 30 October 2012 - 04:21 PM

First, I reiterate you'll definitely want to use C++11, even more so if you want to keep things 'regular'. If you try to keep your code conforming to the ancient C++98 standard, you'll need to use much more nonstandard libraries like Boost to accomplish basic things that in C++11 are in the standard library, and there's really no reason to do that.

The tools you get in MinGW are the most standard, best documented stuff you can find. Initially you just need to use the gcc compiler, but you'll also have the gdb debugger and make build tool waiting for you for later.
With gcc installed, you'll want to use
g++ -Wall -Wextra -std=c++0x -o hello.exe hello.cpp
to compile your Hello World.

As for editors, Notepad is terrible. At the least, use Notepad++ or equivalent. The heavy hitters, Vim (my favorite) and Emacs are great but take some learning to use. Sublime Text is both easy and powerful, but is only free for evaluation, and continued use requires buying a license. The license is cheap, though.

#1Stroppy Katamari

Posted 30 October 2012 - 04:20 PM

First, I reiterate you'll definitely want to use C++11, even more so if you want to keep things 'regular'. If you try to keep your code conforming to the ancient C++98 standard, you'll need to use much more nonstandard libraries like Boost to accomplish basic things that in C++11 are in the standard library, and there's really no reason to do that.

The tools you get in MinGW are the most standard, best documented stuff you can find. Initially you just need to use the gcc compiler, but you'll also have the gdb debugger and make build tool waiting for you for later.
With gcc installed, you'll want to use
g++ -Wall -Wextra -std=c++0x -o hello.exe hello.cpp
to compile your Hello World.

As for editors, Notepad is the absolute worst text editor I recall using. At the least, use Notepad++ or equivalent. The heavy hitters, Vim (my favorite) and Emacs are great but take some learning to use. Sublime Text is both easy and powerful, but is only free for evaluation, and continued use requires buying a license. The license is cheap, though.

PARTNERS