Sha256: 42fabdf3c84712d4832693a9281cd2059593d969cfb931a0b774d744ff734c23

Contents?: true

Size: 723 Bytes

Versions: 6

Compression:

Stored size: 723 Bytes

Contents

# Building

The following describes how to build YARP from source.
This comes directly from the [Makefile](../Makefile).

## Common

All of the source files match `src/**/*.c` and all of the headers match `include/**/*.h`.

The following flags should be used to compile YARP:

* `-std=c99` - Use the C99 standard
* `-Wall -Wconversion -Wextra -Wpedantic -Wundef` - Enable the warnings we care about
* `-Werror` - Treat warnings as errors
* `-fvisibility=hidden` - Hide all symbols by default

## Shared

If you want to build YARP as a shared library and link against it, you should compile with:

* `-fPIC -shared` - Compile as a shared library
* `-DYP_EXPORT_SYMBOLS` - Export the symbols (by default nothing is exported)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yarp-0.12.0 docs/building.md
yarp-0.11.0 docs/building.md
yarp-0.10.0 docs/building.md
yarp-0.9.0 docs/building.md
yarp-0.8.0 docs/building.md
yarp-0.7.0 docs/building.md