Skip to content

Can't link boost::interprocess library in Ubuntu. Lib non-existent? #148

@piffy

Description

@piffy

I am moving my first steps with Boost. I am working on the example program that uses boost::interprocess::shared memory , as shown in https://www.boost.org/doc/libs/1_49_0/doc/html/interprocess/sharedmemorybetweenprocesses.html

Though the program compiles OK, I'm unable to link it. I tried several CLI commands, the most promising being

g++ boostshm.cpp -lboost_interprocess -ltr

It states that it can't find lboost_interprocess. This is also confirmed by listing boost libraries in /usr/lib.

Note: I am using Ubuntu 20.04. I installed Boost with sudo apt install libboost-all-dev, and other Boost programs compile and link just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions