Author Topic: Compiler for learning  (Read 5127 times)

0 Members and 1 Guest are viewing this topic.

Offline rasenove

  • Baron
  • ****
  • Posts: 950
  • Cookies: 53
  • ಠ_ಠ
    • View Profile
Compiler for learning
« on: February 09, 2013, 04:49:29 pm »
Im starting to learn c++, so i need a standard compiler to code what i learn. well i know that any compiler that has the standard iso blah blah blah will do. But im asking becaus im not learning from one resource, im going through multiple books and websites at the same time(each chapter at the same time) so i can get different views and concepts about every point in this subject, but they didnt use the same code for examples everyware.
Anyway, I tryed code::block (windows) and visual studio 2012 and think they are well enough to go for it(dont know why tho). But i still think i should hear your opinions befor jumping in.
Thank you
« Last Edit: February 09, 2013, 05:15:58 pm by rasenove »
My secrets have secrets...

Offline DaNePaLI

  • Peasant
  • *
  • Posts: 55
  • Cookies: 12
  • Forever n00b
    • View Profile
Re: Compiler for learning
« Reply #1 on: February 09, 2013, 05:09:11 pm »
Well if you are using Code::Block or VS12, you should know that they are IDEs, not the compilers. Think of them like a wrapper around the all those compilation processes your source code must go to get translated into the target machine code. I must say that if you are learning, do not use these IDEs. Well IDEs have their own benefits such as code profiling, refactoring, debugging front ends, intellisense, deployment mechanisms, etc. bundled within them. But, as you said, you are starting to learn C++, I would say, go for g++ (& I guess you can use g++ on Windows through Mingw or Cygwin). As for text editor, GNU Emacs or Vim should be more than enough. Notepad++ is also a great text editor. Though they don't provide the code completion features like the IDEs, this will help you keep information in your memory.

And, you must understand the difference between IDEs and Compilers so you should google the difference.

Offline rasenove

  • Baron
  • ****
  • Posts: 950
  • Cookies: 53
  • ಠ_ಠ
    • View Profile
Re: Compiler for learning
« Reply #2 on: February 09, 2013, 05:36:04 pm »
Well, VS C++ Is both an ide and compiler. So what  do you suggest?
My secrets have secrets...

Offline DaNePaLI

  • Peasant
  • *
  • Posts: 55
  • Cookies: 12
  • Forever n00b
    • View Profile
Re: Compiler for learning
« Reply #3 on: February 09, 2013, 05:58:26 pm »
Well, VS C++ Is both an ide and compiler. So what  do you suggest?
Well, I guess cl is still the command line tool for compilation in VS C++ so if you do cl /EHsc your_code.cpp, then that will be better. My point is, try to familiarize yourself with different flags the compilers back end leverage to you. Most often, the GUI tend to impose just the widely used flags and sometimes, you might need to use different other switches so I suggest to use CLIs when you're learning.

Once you are comfortable with the compilation options, you can then freely use the IDEs.

Offline Daemon

  • VIP
  • Baron
  • *
  • Posts: 845
  • Cookies: 153
  • A wise man fears a gentle mans anger
    • View Profile
Re: Compiler for learning
« Reply #4 on: February 09, 2013, 06:20:23 pm »
Im starting to learn c++, so i need a standard compiler to code what i learn. well i know that any compiler that has the standard iso blah blah blah will do. But im asking becaus im not learning from one resource, im going through multiple books and websites at the same time(each chapter at the same time) so i can get different views and concepts about every point in this subject, but they didnt use the same code for examples everyware.
Anyway, I tryed code::block (windows) and visual studio 2012 and think they are well enough to go for it(dont know why tho). But i still think i should hear your opinions befor jumping in.
Thank you

This info is in the stickies in the project and discussion board, http://evilzone.org/projects-and-discussion/(guide)-which-language-to-start-with/
That said, you want tthe gcc compiler for c and g++ for c++
You can use these compilers either in conjunction with an IDE like codeblocks or straight from the command line. If your doing this on windows, id suggest codeblocks. If you have access to Linux, then id use your favorite text editor and the compiler from a bash shell. Personally I prefer the linux way ;)
This lifestyle is strictly DIY or GTFO - lucid

Because sexploits are for h0edays - noncetonic


Xires burns the souls of HF skids as a power supply