Skip to content

libprotobuf fatal error when running output file #2

@indrango

Description

@indrango

Thank you for creating example how to build protobuf via cmake, I have a problem when running the compiled file.

libprotobuf FATAL google/protobuf/generated_message_util.cc:783

Solution
Open CMakeLists.txt in the main folder, change
TARGET_LINK_LIBRARIES(main proto ${PROTOBUF_LIBRARY})
into
TARGET_LINK_LIBRARIES(main proto ${PROTOBUF_LIBRARIES})

Based CMake documentation
https://cmake.org/cmake/help/v3.0/module/FindProtobuf.html

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