-std=c++11
flag. CScout
has been built and tested both with GCC and LLVM.
You install CScout in five steps:
cd cscout
make
make test
(optional, but highly recommended)sudo make install
. If you want the installation
to use a different directory hierarchy than the default
/usr/local
INSTALL_PREFIX
variable.
For example, you run make install INSTALL_PREFIX=/home/mydir
to install CScout under your home directory or
sudo make install INSTALL_PREFIX=/usr
to install CScout under /usr.
By default the installation will create in /usr/local/include/cscout
headers corresponding to a generic standard C compilation and to your
host's specific configuration.
If you want to process programs based on other host configurations
you can modify these files or create a local version of the files
in your home or the project's current directory.
In most cases you want CScout to process your code using
the include files of the compiler you are normally using.
This will allow CScout to handle programs using the libraries
and facilities available in your environment
(e.g. Unix system calls or the Windows API).
In the other hand it exposes CScout to the extensions and quirks
that might reside in your system's header files.
You can typically reslove these problems by adding a few additional
macro definitions that neutralize unknown compiler extensions.
As an example,
if your compiler supports a quad_double
type and associated
keyword with semantics roughly equivalent to double
you would add a line in host-defs.h
:
#define quad_double doubleHave a look in the existing
host-defs.h
file to see
what might be required.
If your programs are written in standard C and do not use any additional
include files, you can use the generic header files.