Skip to content

Undefined symbols "boost::system::detail::generic_category_instance" #28

@ghost

Description

I'm on macOS 10.14.1 with boost 1.68.0

I built boost from source to try and see whether vcpkg was the source of the problem in my build (I submitted an issue to vcpkg for this.) I'm getting this when I link:

  "boost::system::detail::generic_category_instance", referenced from:
      boost::system::generic_category() in log.cpp.o

Here's the build configuration in my cmake project, I'm also building for c++17:

ExternalProject_Add(
  Boost
  PREFIX "${CMAKE_BINARY_DIR}/extern"
  GIT_REPOSITORY "https://github.com/boostorg/boost.git"
  GIT_TAG "boost-1.68.0"
  GIT_SHALLOW TRUE
  GIT_PROGRESS TRUE
  BUILD_IN_SOURCE TRUE
  CONFIGURE_COMMAND 
    <SOURCE_DIR>/bootstrap.sh
      --with-libraries=filesystem
      --with-libraries=log
      --with-libraries=locale
      --with-libraries=system
      --with-libraries=thread
      --prefix=<SOURCE_DIR>
  BUILD_COMMAND <SOURCE_DIR>/b2 install link=static variant=release threading=multi runtime-link=static
  INSTALL_COMMAND ""
)

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