Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker error when using boost.program_options #1

Open
Vertexwahn opened this issue Oct 20, 2023 · 1 comment
Open

Linker error when using boost.program_options #1

Vertexwahn opened this issue Oct 20, 2023 · 1 comment
Labels

Comments

@Vertexwahn
Copy link

When depending on boost.program_options I get a linker error.

ERROR: /home/vertexwahn/BazelDemos/intermediate/cpp/Boost/ProgramOptions/BUILD.bazel:1:10: Linking demo failed: (Exit 1): gcc failed: error executing command (from target //:demo) /usr/bin/gcc @bazel-out/k8-fastbuild/bin/demo-2.params

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
bazel-out/k8-fastbuild/bin/_objs/demo/main.pic.o:main.cpp:function main: error: undefined reference to 'boost::program_options::options_description::m_default_line_length'
bazel-out/k8-fastbuild/bin/_objs/demo/main.pic.o:main.cpp:function main: error: undefined reference to 'boost::program_options::options_description::m_default_line_length'
...

How to reproduce?

git clone https://github.com/Vertexwahn/BazelDemos.git
cd BazelDemos/intermediate/cpp/Boost/ProgramOptions
bazel build //...
@zaucy zaucy transferred this issue from bazelboost/registry Oct 20, 2023
@zaucy
Copy link
Member

zaucy commented Oct 20, 2023

Let's keep only registry-related issues in the registry repository. Thanks for reporting the issue!

@zaucy zaucy added the bug label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants