Results 1 to 5 of 5

Thread: compiling c program in opensuse 13.1

  1. #1

    Default compiling c program in opensuse 13.1

    how to compile c program in suse 13.1

  2. #2

    Default Re: compiling c program in opensuse 13.1

    Quote Originally Posted by arvinddx View Post
    how to compile c program in suse 13.1
    Install the gcc package. Perhaps the make package as well.

    Open a terminal. From the command prompt, say:

    gcc -Wall my.C

    The compiler has many other options.

    This is the easiest way to compile a simple program. More tools like IDEs are available.

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,281

    Default Re: compiling c program in opensuse 13.1

    As an addition: it might even be usefull to install the Pattern Basic Development. Then you have not only the C-compiler and make, but many other things you might need in developing C programs.
    Henk van Velden

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,762

    Default Re: compiling c program in opensuse 13.1

    If you are compiling an application from source you will meed make and gcc but there also should be a readme file in the source package that should give complete instructionfor that application.

    If you are planning on writing your own program then get a good c and or c++ book. There is a lot to know in order to write a c program.

  5. #5
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,078

    Default Re: compiling c program in opensuse 13.1

    On Sun, 30 Mar 2014 07:26:02 +0000, arvinddx wrote:

    > how to compile c program in suse 13.1


    That's not something that's going to be easily answered in a forum post,
    as there are entire books and courses about writing and compiling
    software.

    What is your goal? Are you trying to learn how to code, are you looking
    to install a package that you think only is available as source (chances
    are it's not, but unless you tell us what it is, we can't point you in
    the right direction for a precompiled package - though http://
    software.opensuse.org is a good place to start)?

    When asking questions on a forum, it helps to be as specific as you can
    be. You might read the excellent essay by Eric Raymond on asking smart
    questions. It is available at:

    http://www.catb.org/esr/faqs/smart-questions.html

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Tags for this Thread

Posting Permissions

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