Linux Commands Examples

A great documentation place for Linux commands

c99

ANSI (1999) C compiler


see also : cc

Synopsis

c99 [-pedantic] [-pedantic-errors] [-D_ANSI_SOURCE] options ...


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

1
source
            
c99 -g 2_way_UDP_server.c -o 2_way_UDP_server -lSDL -lSDL_net
c99 -g 2_way_UDP_client.c -o 2_way_UDP_client -lSDL -lSDL_net
1
source
            
c99 -g send_keys_server.c -o send_keys_server -lSDL -lSDL_net
c99 -g send_keys_client.c -o send_keys_client -lSDL -lSDL_net
1
source
            
TARGET = monitor2
all: $(TARGET)
libpg.o: libpg.c libio.h libpg.h
c99 $< -o $@ -c
libio.o: libio.c libio.h
libio.o: libio.c libio.h
c99 $< -o $@ -c
%: %.c libpg.o libio.o libpg.h libio.h
c99 $< libpg.o libio.o -o $@ -g -Wall -lpciaccess
clean:
rm -f $(TARGET) *.o *~
0
source
            
c99 -g -o ttf2svgpath ttf2svgpath.c `freetype-config --cflags` `freetype-config --libs`
0
source
            
TARGET = fucload
all: $(TARGET)
libpg.o: libpg.c libio.h libpg.h
c99 $< -o $@ -c
libio.o: libio.c libio.h
libio.o: libio.c libio.h
c99 $< -o $@ -c
%: %.c libpg.o libio.o libpg.h libio.h
c99 $< libpg.o libio.o -o $@ -g -Wall -lpciaccess
0
source
            
TARGET = fucload
all: $(TARGET)
libpg.o: libpg.c libio.h libpg.h
c99 $< -o $@ -c
libio.o: libio.c libio.h
libio.o: libio.c libio.h
c99 $< -o $@ -c
%: %.c libpg.o libio.o libpg.h libio.h
c99 $< libpg.o libio.o -o $@ -g -Wall -lpciaccess
clean:
rm -f $(TARGET) *.o *~

description

Calls the C compiler (cc) with the given options , using a C language environment compatible with the -ansiC specification.

This includes proper handling of trigraphs, disabling non-ANSI compiler features (such as asm , typeof , and the $ character in identifiers), and definition of the preprocessor symbol __STRICT_ANSI__ .

The status of C99 features implemented in GCC is described at http://gcc.gnu.org/gcc-4.7/c99status.html


bugs

Since c99 is a shell wrapper script to cc , compile errors are prefixed by "cc:".


history

Appeared in NetBSD 1.4 .


see also

cc for a description of all options.

How can this site be more helpful to YOU ?


give  feedback