Find the answer to your Linux question:
Results 1 to 4 of 4
i am new to C programming and i need a way to compile and run my code.I've made a little research and i found that eclipse is a nice IDE.But ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    19

    [SOLVED] compiling and running C programs

    i am new to C programming and i need a way to compile and run my code.I've made a little research and i found that eclipse is a nice IDE.But i don't know how to configure it and generally... what do i need to download and install to make it work.I've also tried downloading easyeclipse that doesn't need any configuration or extra files but the link on the site was broken.Is there any other C IDE like easyeclipse available?

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Which distro are you using? Eclipse should be available in most distro's repositories.

    Do you have the necessary build tools to compile from source? Most distros have a metapackage with all the basics, for example in Ubuntu/Debian, it's called build-essential.
    Code:
    sudo apt-get install build-essential
    If you want something a little lighter than eclipse, check out geany.

    Linux / UNIX - C Programming Howtos, Tutorials, Guides

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    19
    well i use Ubuntu.I don't know what a build-essential package is .Does it have to do something with compiling code and running programs on the terminal?Or maybe is it necessary for eclipse?
    anyway thanks for the link reed9

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Build-essential is a meta-package for some basic development programs necessary to compile source code, including development libraries and headers, gcc, and g++.

    If you're going to program in C, you'll want those installed and you'll want to learn about gcc.

    GCC online documentation - GNU Project - Free Software Foundation (FSF)

    GCC Survival Guide - GPWiki

Posting Permissions

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