Results 1 to 8 of 8

Thread: Things needed to Program in C

  1. #1
    Join Date
    Mar 2006
    Beans
    27

    Things needed to Program in C

    Hi
    I'm sure this as been asked a thousand times, but after using the search button and browsing numerous post, I found no answer.

    I want to program in C, I'm using emacs to write the code and gcc for compiling.
    The thing is I don't know which files to enable.

    I'm getting errors on "Can't find stdio.h", and my emacs look isn't right also.
    It shows plain text, and I've seen that emacs can get all colourfull when programing (functions are lit in one colour, variables in other, etc.), and that's just not happening.

    Thanks in advance.

  2. #2
    Join Date
    Oct 2006
    Location
    Austin, Texas
    Beans
    2,712
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Things needed to Program in C

    Type this in the terminal:

    Code:
    sudo apt-get install build-essential
    That's really all you need to start.

  3. #3
    Join Date
    Mar 2006
    Beans
    27

    Re: Things needed to Program in C

    Cool
    I can compile now, though my emacs issue remains...
    Thanks

  4. #4
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Things needed to Program in C

    Quote Originally Posted by Kramxel View Post
    Cool
    I can compile now, though my emacs issue remains...
    Thanks
    I am no where as experienced in emacs as you are, since I have barely ever tried it, but I would imagine there is a menu which includes the word syntax, which is where you should be able to have variables loops etc. get different colors.

  5. #5
    Join Date
    Feb 2007
    Beans
    2,729

    Re: Things needed to Program in C

    Also install the development man pages - no self-respecting C programmer goes without them!
    Code:
    sudo apt-get install manpages-dev
    MrC

  6. #6
    Join Date
    Jan 2006
    Beans
    961

    Re: Things needed to Program in C

    Code:
    M-x global-font-lock-mode
    you can set it permanently in your ~/.emacs file .. (here is my setup btw. http://nostdal.org/~lars/writings/emacs.html )

  7. #7
    Join Date
    Apr 2005
    Beans
    849

    Re: Things needed to Program in C

    you should also enable paranthesis matching
    Code:
    M-x show-paren-mode

  8. #8
    Join Date
    Mar 2006
    Beans
    27

    Re: Things needed to Program in C

    Now emacs is just how I like him to be!

    Time to start working on it...

    Thanks everyone!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •