Thread: Compiler recommendations?

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    6

    Compiler recommendations?

    I am taking a class designed for engineering applications, and the syllabus has a very muddled description of what I need. One of the suggestions was a program called CODE::BLOCKS, but when I open that, I am very... very confused. Is that a good program to use for my needs as a beginner or would you recommend something better?

  2. #2
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    Code::Blocks is what you call an integrated development environment (people will refer to IDEs), it compiles your code for you, keeps track of your source files, generates a Makefile, provides syntax highlighting (it probably does, I've never used Code::Blocks), automatic indentation, code folding, and other features to make programming easier. Personally, I prefer a text editor and a terminal, that might be easier for a beginner.

    You could download MinGW and use that to compile your code through the command line, that's what I use on Windows. On Unix, I use the standard GCC, which is usually available.
    Quote Originally Posted by The Jargon File
    Microsoft Windows - A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    6
    Sweet, I will try that.... thanks!

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by ssnapier View Post
    Sweet, I will try that.... thanks!
    Text editor and terminal is a viable option... but you will be giving up a hundred usefull features to do that.

    An Integrated Developer's Environment --Code::Blocks being only one-- add many useful tools which Babcock already named... but they do something else as well... they ORGANIZE your work for you. There are two features in particular you will miss very badly if you go the "notepad" route... syntax highlighting (keywords, braces, etc. in different colors) and line numbering (since most compilers report the line number of errors).

    It's all groovy and macho to use dumb tools... but it doesn't make you a smarter programmer. A smart programmer uses whatever tools are at his disposal.

    If you're finding Code::Blocks a bit ... ummm... weird, and you are on Windows you might consider Pelles C as an alternative. The IDE is more complete, with better tools, the compiler is C-99 compliant and the help file is amazing...

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by CommonTater
    There are two features in particular you will miss very badly if you go the "notepad" route... syntax highlighting (keywords, braces, etc. in different colors) and line numbering (since most compilers report the line number of errors).
    Actually, you would miss neither of them, unless you are literally using Notepad (and even then there may be some line/column indication) instead of a text editor designed for programming. It is things like integration with the compiler and debugger that are more likely to be missing, otherwise the text editor would actually be an IDE.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by laserlight View Post
    Actually, you would miss neither of them, unless you are literally using Notepad (and even then there may be some line/column indication) instead of a text editor designed for programming. It is things like integration with the compiler and debugger that are more likely to be missing, otherwise the text editor would actually be an IDE.
    But without the nice editor it would be a darned poor one...

    Tool chains and option flags, makefiles, you generally create once at the beginning of a project. The nice little touches like Syntax Highlights, Line Numbers, Keyword help, Call Tips, etc are right there every time you open a file, in constant use.

    I could work in an evironment where I had to create my own makefiles long before I'd ever give up my fancy editor...

    Edit: In fact you'd probably be amazed how many errors I've caught simply by noticing that something is the wrong color...
    Last edited by CommonTater; 04-12-2011 at 09:28 AM. Reason: afterthought

  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by CommonTater
    But without the nice editor it would be a darned poor one...
    I think you misunderstood: I'm not saying that ssnapier won't miss syntax highlighting and line numbering because they are not necessary (though strictly speaking this is true). I'm saying that ssnapier won't miss syntax highlighting and line numbering because they will be provided by a typical standalone text editor designed for programming.

    Quote Originally Posted by CommonTater
    Tool chains and option flags, makefiles, you generally create once at the beginning of a project.
    This is in the area of tool chain integration, not text editor-land.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  8. #8
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    Fancy IDEs are good. but they hide many things and for beginners I'd just recommend to use text editor and terminal. and later move on to use IDE.

    I use notepad++ on windows and gedit on linux.

  9. #9
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by laserlight View Post
    I think you misunderstood: I'm not saying that ssnapier won't miss syntax highlighting and line numbering because they are not necessary (though strictly speaking this is true). I'm saying that ssnapier won't miss syntax highlighting and line numbering because they will be provided by a typical standalone text editor designed for programming.
    Ok... maybe I did get that a bit wrong...
    But to be correct you have to assume that (text editor == syntax highlighting) and while it's often true it is not universally so.


    This is in the area of tool chain integration, not text editor-land.
    Yep... As I was saying, I'd live without that before giving up the nice editor.

  10. #10
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Bayint Naung View Post
    Fancy IDEs are good. but they hide many things and for beginners I'd just recommend to use text editor and terminal. and later move on to use IDE.

    I use notepad++ on windows and gedit on linux.
    That raises an interesting question...

    Do courses teach the compile/link/makefile thing up front or are they teaching these as advanced topics?

    We're both right, I guess... depending on the course curriculum.

  11. #11
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by CommonTater
    But to be correct you have to assume that (text editor == syntax highlighting) and while it's often true it is not universally so.
    I would like to remind you that you made it sound as if all text editors did not have line numbering and syntax highlighting, whereas I qualified my statements with "unless you are literally using Notepad" and "typical standalone text editor designed for programming". My point here is that an IDE provides tool integration; that an IDE has an advanced text editing component does not mean that similiar features cannot be provided by a standalone text editor, unless those features require integration with other tools.

    Quote Originally Posted by CommonTater
    Do courses teach the compile/link/makefile thing up front or are they teaching these as advanced topics?
    You might want to ask this in your "Course curiosity...." thread instead.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux recommendations?
    By medievalelks in forum A Brief History of Cprogramming.com
    Replies: 32
    Last Post: 07-16-2008, 08:27 AM
  2. Replies: 2
    Last Post: 02-04-2008, 02:34 AM
  3. IDE Recommendations
    By sigma in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 03-30-2002, 11:51 PM
  4. Recommendations…?
    By Fordy in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 09-21-2001, 06:40 PM