Skip to content

Linking SDSL into a project #455

Open
@leonwind

Description

@leonwind

Hey,

I had trouble linking the SDSL library to one of my problems and got the following error message:

can not be used when making a shared object; recompile with -fPIC

I fixed it by changing the run cmake command in install.sh (here) to the following line with the additional -DCMAKE_POSITION_INDEPENDENT_CODE=ON flag:

cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX="${SDSL_INSTALL_PREFIX}" .. # run cmake

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions