Undefined reference to `boost::system::system_category()
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:
- Installed Requirements
Cmake : 3.17.3
Swig : 3.0.8
Boost : 1.67.0 - Git Clone
- Cd SPTAG
- Mkdir Build
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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