Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

C Learning enviroment

  • 26-04-2013 8:56pm
    #1
    Registered Users, Registered Users 2 Posts: 9,294 ✭✭✭


    I'm looking to teach myself C. I was looking to build a Linux or BSD based learning environment. I was wondering if anyone can recommend OS's/ tools/ books to setup such that would be helpful for someone trying to self teach and any other useful tips


Comments

  • Registered Users, Registered Users 2 Posts: 4,792 ✭✭✭cython


    limnam wrote: »
    I'm looking to teach myself C. I was wanted to build a Linux or BSD based learning environment. I was wondering if anyone can recommend OS's/ tools/ books to setup such that would be helpful for someone trying to self teach and any other useful tips

    Any Linux environment should be straightforward to set up, but Ubuntu and Mint come recommended in many places. In terms of IDE, etc. you can build C programs with a text editor and the GCC compiler, but if you want an IDE or similar, then CodeBlocks is a decent one that will pick up GCC and can also pick up MS compilers on Windows.


  • Registered Users, Registered Users 2 Posts: 882 ✭✭✭moneymad


    limnam wrote: »
    I'm looking to teach myself C. I was wanted to build a Linux or BSD based learning environment. I was wondering if anyone can recommend OS's/ tools/ books to setup such that would be helpful for someone trying to self teach and any other useful tips

    here you go, this is all you need.

    learn c the hard way


  • Registered Users, Registered Users 2 Posts: 40,038 ✭✭✭✭Sparks


    If you're going to be learning C, I think I'd recommend you skip using an IDE and just use a text editor and gcc. It'll be the easiest way to start up and unlike languages with more of a runtime environment or twelve terabytes of standard libraries, you don't really need an IDE for the kind of helloworld.c files you'll be writing initially (and you'll learn more).

    As to environment, the easiest linuxes to install and maintain for a new user on their own PC would be Ubuntu, Mint and Debian, probably in that order. I prefer Debian but that's because it's the one I started off with (under the hood, you'll learn eventually that they're all the same thing essentially, with only minor differences).

    You'll want to install an editor you like (if you haven't used one on unix before, try pico - vi and emacs are the best ones but the learning curve of those plus the learning curve of unix plus the learning curve of C add up to a learning overhanging-wall...), gcc itself, and later on gdb (or a variant like cgdb or something more graphical like ddd).

    There's a list of recommended books in another thread; for C, I'd start and end with K&R's original C book (make sure to get a recent copy, you want at least the second edition); for how you write C programs specifically in Unix there's The Unix Programming Environment and Advanced Programming in the UNIX Environment.

    Lastly, remember that google is your friend (and stackoverflow). Seriously, every wierd compiler error message, every glitch you come across when you start learning, someone's already hit it before and just feeding the message into google will usually give you either the full story of why you hit it; or at least give you a good idea of where to start digging.

    Good luck!


  • Registered Users, Registered Users 2 Posts: 3,739 ✭✭✭Stuxnet


    ya might as well learn c++ these days...


  • Registered Users, Registered Users 2 Posts: 2,040 ✭✭✭Colonel Panic


    That's a paddlin'!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 9,294 ✭✭✭limnam


    Stuxnet wrote: »
    ya might as well learn c++ these days...

    C is dead :-] C in this case is out of necessity not so much choice.


  • Registered Users, Registered Users 2 Posts: 3,945 ✭✭✭Anima


    http://www.sublimetext.com/

    Sublime Text is a cross platform editor that supports build environments too so you can add one for C.

    It's much better than codeblocks imo.


Advertisement