Template:Programming language:C

From LiteratePrograms
Jump to: navigation, search

[edit] Building and running C programs

[edit] On UNIX like systems (GNU/Linux, *BSD, Solaris etc.)

Many UNIX like systems come with a preinstalled C compiler, which can be started with the command cc filename.c, and the specified C file will be compiled and linked.

If compilation/linking is successfull, an executable file called a.out is generated. To run that file enter ./a.out on the command line.

Some free compilers for UNIX-like systems include:

[edit] On Windows NT/2000/XP

The Windows operating systems do not come with a C compiler, but there are several, both free and proprietary, available:

  • Free
    • Cygwin, a UNIX like environment for Windows, includes GCC
    • Dev-C++, an Integrated Development Environment (IDE), also includes GCC
  • Proprietary
    • Microsoft Visual Studio is an IDE that includes compilers for multiple languages, including C
    • The Borland C++ Builder IDE can compile C programs



This template can be inserted at the end of articles describing C programs

hijacker
hijacker
hijacker
hijacker