Results 1 to 4 of 4

Thread: C89 with Geany

  1. #1
    Join Date
    Feb 2007
    Location
    NZ
    Beans
    89
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    C89 with Geany

    I wasn't sure if I should put this post here or in the absolute beginner forum.

    Anyway, I'm taking a uni paper learning C89 and using geany as the IDE. I downloaded geany...

    Code:
    sudo apt-get install geany
    and now I don't know how to continue.
    I need to download C89 then connect it up with geany somehow.

    Any help?

    cheers

  2. #2
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,288
    Distro
    Kubuntu

    Re: C89 with Geany

    Quote Originally Posted by scorpious View Post
    I need to download C89 then connect it up with geany somehow.

    Any help?
    Try
    Code:
    sudo apt-get install build-essential
    After completing the step above, your system will have the GCC tools, of which 'gcc' is used for compiling C programs. The default version of the gcc compiler supports C89. You can switch to later versions of C (e.g. C99) using the -std=c99 or -std=gnu99 compiler options.

    As for Geany, I don't anything about it. If you are learning to program for the first time, IMHO, you should avoid using an IDE.

  3. #3
    Join Date
    Nov 2005
    Location
    Sendai, Japan
    Beans
    11,296
    Distro
    Kubuntu

    Re: C89 with Geany

    Also, the default gcc settings are to compile gnu89, which is basically C89 with some GNU extensions. If you want a more pure C89, compile with -ansi.

    And I agree with dwhitney67 about not using an IDE if you're just beginning. Or even at all actually, an IDE is not really needed in C IMO. It's not Java.
    「明後日の夕方には帰ってるからね。」


  4. #4
    Join Date
    Feb 2007
    Location
    NZ
    Beans
    89
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: C89 with Geany

    Thanks for the replies.

    Turns out all I needed to do was save the files as .c and geany did the rest.

    I'll stick with using geany for now as that's what we're being lectured with. But I'll probably stop using it after the course is finished.

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
  •