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
examples
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
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
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
*~
source
c99 -g -o ttf2svgpath ttf2svgpath.c `freetype-config --cflags`
`freetype-config --libs`
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
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.