Skip to content

Can't link simple C++ program that uses protobuf installation made from sources #22409

Open
@FreeSpirit9009

Description

@FreeSpirit9009

Environment:
ProtoBuf 4.22.5, WSL Ubuntu 24.04
Installed prerequisites: sudo apt install -y cmake git g++ build-essential unzip
ProtoBuf installed from sources as I described in #15329
I can't use recent tags as they do not build, as I described in #15329

Steps:
Created a small C++ program using addressbook.proto from https://protobuf.dev/getting-started/cpptutorial/
Compiled addressbook.proto
Try to compile main.cpp using "make"

Expected result: it builds and runs

Observed result: linking fails, see attachments

Simple_C++_Project.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedauto added to all issues by default when created.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions