NAME

ng_cc - The Ninf-G Client compiler

SYNOPSIS

ng_cc [compiler options]

DESCRIPTION

The ng_cc is a script that wraps the compiler and linker. It generates Ninf-G Client programs by compiling and linking application programs.

Options and arguments for the compiler and linker can be written on the ng_cc command line. Those are passed to the compiler and linker used in ng_cc .
For example, executing the following command will to generate Ninf-G Client(test_client) from the test_client.c application program using the default (C language) compiler and linker.

    % ng_cc -g -o test_client test_client.c

The default compiler and linker used by ng_cc is the C compiler and linker, cc. If the application program is written in C and the cc compiler and linker is used, executing the ng_cc command will create an Ninf-G Client.

A compiler and linker other than cc can be used by setting the NG_COMPILER and NG_LINKER environment variables to specify the compiler and linker to be used by ng_cc. When that is done, the options required by the specified compiler and linker must be included in the same variables.

For example, to compile with g++ on a machine running Linux, the following values are set. (The setting method for sh is described here.)
    % NG_COMPILER='g++ -Wall -g -DNG_CPU_I386 -DNG_OS_LINUX \
      -DPLAT_LINUX -DARCHNUM=12 -DDEBUG -D__USE_FIXED_PROTOTYPES__
      -DLDAP_SSH'
    % NG_LINKER='g++ -Wall -g'
    % export NG_COMPILER NG_LINKER

Note: Mixed utilization of off_t and other file size related data types may cause mismatch of data size. By default, ng_cc uses large file option such as _FILE_OFFSET_BITS=64 (on Linux) as its compile option. Thus, the size of off_t type compiled by ng_cc may differ from the size of off_t type compiled by non ng_cc command.

ERRORS

If the compiling of the application program fails, the compiler error message is output.


last update : $Date: 2005/07/11 07:13:44 $