microsoft / microsoft/SPTAG

Undefined reference to `boost::system::system_category()

Open
#149 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
5k
Forks
622
Avg merge
8h 37m
Merged PRs (30d)
5

Description

Description
After running cd build && cmake .. && make. It seems that the SearchService.ccp can't find the system_category function from the boost library.

To Reproduce
Steps to reproduce the behavior:

  1. Installed Requirements
    Cmake : 3.17.3
    Swig : 3.0.8
    Boost : 1.67.0
  2. Git Clone
  3. Cd SPTAG
  4. Mkdir Build
  5. cd build && cmake .. && make

Result
[ 1%] Linking CXX executable ../../Release/server
CMakeFiles/server.dir/src/Server/SearchService.cpp.o:
In function SPTAG::Service::SearchService::~SearchService()': SearchService.cpp:(.text+0x25c): undefined reference to boost::system::system_category()'
SearchService.cpp:(.text+0x321): undefined reference to boost::system::system_category()' SearchService.cpp:(.text+0x364): undefined reference to boost::system::system_category()'
SearchService.cpp:(.text+0x41c): undefined reference to boost::system::system_category()' SearchService.cpp:(.text+0x44b): undefined reference to boost::system::system_category()'

Desktop

  • OS: Ubuntu
  • Version : 16.04

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the reported Ubuntu 16.04 steps: cd build && cmake .. && make. Start from the link step for the server target and inspect how SearchService.cpp is linked with Boost. Done means the server executable links successfully without undefined references to boost::system::system_category().

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.