Solved

writing a c programme  in  a  unix  environment

Posted on 1998-10-14
3
212 Views
Last Modified: 2010-04-15
I just  started programming in C and  I need to  write a  C   programme
in  Unix.   How do I start?
0
Comment
Question by:naturalmystic
3 Comments
 
LVL 2

Expert Comment

by:shchuka
ID: 1253525
You should use any text editor to write the source code, e.g. vi, emacs, pico, or anything else.  I personally recommend emacs.  If you're working on a workstation, it has C syntax coloring and it will automatically match parenthes (all kinds: (), [], {}). Start it by typing at the command prompt:
    emacs filename.c
After you've created the file, compile it using gcc or cc or whatever compiler is available on your system:
    gcc -o outputfilename filename.c

This is the simplest thing you would do.  Of course, if you're working on a large project, you'll have a make file to compile the sources and also you'll probably use some flags to pass to the compiler.  From you question, I believe you are just starting working with C, so my answer should be enough to get you started.
0
 
LVL 2

Accepted Solution

by:
kellyjj earned 50 total points
ID: 1253526
Are you new to C??  If so I would get some books to  get you started.  There are pleanty good books out there.  Then just start doing the excercises in the books.   Also I would get a book dealing with unix.


0
 

Author Comment

by:naturalmystic
ID: 1253527
Thanks kellyjj for attempting an answer but I found schuka's comment more helpful.THANKS  A LOT SCHUKA.WHAT BOOKS ARE YOU TALKING  ABOUT KELLYJJ?
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to align numbers in C using the %d 2 98
SCANF - LIMIT THE NUMBER OF CHARARACTERS 1 63
gdb doesn't stop on breakpoint 2 68
Constant string is of type char *   ? 7 30
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question