General configuration procedure
- Take a look at the Per-Compiler Notes for your specific compiler.
- Add the cxxomfort/ path to your compiler/project's
#include
path.
Configuring GCC
To add the path to a compile command, use the -I
or -isystem
switches:
g++ [...options] -I /path/to/include/cxxomfort/ [...sources]
Configuring with clang
Use the -I
switch to add to the compiler path:
clang [...options] -I /path/to/include/cxxomfort/ [...sources]
Configuring with MSVC
Use the -I
switch to add to the compiler path:
cl.exe [...options] -I /path/to/include/cxxomfort/ [...sources]
stdint.h and inttypes.h
If your version of MSVC comes without <stdint.h> and or <inttypes.h>(such as the Express version of MSVC 2008), you can simply download them from somewhere and add their path to the compiler/project's search paths.
- Copy one of the various alternative stdint.h sources like the ones described here or here.
- Download the "portable stdint.h" described here (
pstdint.h
) and save it as stdint.h. - Copy the version of pstdint.h already included in cxxomfort (under
cxxomfort/impl/pstdint.h
).
MSVC 2008
Depending on the version of MSVC 2008 being used, support given by cxxomfort is conditioned. See Per-Compiler Notes#notes-msvc for more information.
- ← Back to Installation.
- → Continue to Features.