-std=c++11flag. CScout has been built and tested both with GCC and LLVM.
You install CScout in five steps:
make test(optional, but highly recommended)
sudo make install. If you want the installation to use a different directory hierarchy than the default
INSTALL_PREFIXvariable. For example, you run
make install INSTALL_PREFIX=/home/mydirto install CScout under your home directory or
sudo make install INSTALL_PREFIX=/usrto install CScout under /usr.
By default the installation will create in
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
you would add a line in
#define quad_double doubleHave a look in the existing
host-defs.hfile 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.