JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.

If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.

If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.

CodeSonar® 9.2p0 CONFIDENTIAL CodeSecure Inc
C and C++

What If I Have No Compiler?

CodeSonar ships with a "null compiler" executable, allowing users without compilers to build CodeSonar projects.



How it Works

The CodeSonar installation includes an executable called null-cc. The null-cc executable is not a compiler, but you can use it in place of a compiler to build your project. CodeSonar will (by default) use the xcc compiler model for projects built with null-cc.

Both C and C++ projects can be built using this technique.

Building Without A Compiler

To build without a compiler:

  1. Make sure that $CSHOME/csurf/bin is in your PATH.
  2. Use null-cc in place of a compiler name in the build process.

Examples

Note: Projects with System Include Files

Most "real" software projects make use of system include files. Such files are usually installed as part of a compiler package, so they may not be present on systems that lack a compiler.

Obtaining Include Files

If your project needs system include files and there are none currently available on your system, you will need to install some before building the project. Consult your system administrator to determine and locate the best include files for your project and computer system.

Building with Include Files

Once system include files are installed, specify their location(s) in the project configuration file.

For example, to use include files from directory /my/include/files:

CFLAGS_APPEND += --sys_include /my/include/files
 

To report problems with this documentation, please visit https://support.codesecure.com/.