Skip to content

Link error #682

@bedapisl

Description

@bedapisl

When linking against yaml-cpp I got following error:

/usr/bin/ld: /home/beda/.local/lib/../lib/libyaml-cpp.a(convert.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTIN4YAML11InvalidNodeE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value

Adding -fPIC option to yaml-cpp CMakeLists.txt and reinstalling it solved the problem.

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