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.
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.
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.
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
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:
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C