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

Build error: multiple definition of std::placeholders::_1 and std::placeholders::_2 #681

Open
taqtiqa-mark opened this issue Feb 24, 2024 · 1 comment

Comments

@taqtiqa-mark
Copy link

taqtiqa-mark commented Feb 24, 2024

Thanks for all the work put into SEAL library.

FYI: I encounter the following error when building:

note: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/libstdc++.a(placeholders.o):(.rodata._ZNSt12placeholders2_2E+0x0): multiple definition of `std::placeholders::_2'; /home/user/src/zno-fhe-src/target/x86_64-unknown-linux-gnu/debug/build/zno-seal-src-test-f04cc592cd967030/out/install/lib/libseal-4.1.a(ciphertext.cpp.o):/usr/include/c++/13/functional:295: first defined here
          /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/libstdc++.a(placeholders.o):(.rodata._ZNSt12placeholders2_1E+0x0): multiple definition of `std::placeholders::_1'; /home/user/src/zno-fhe-src/target/x86_64-unknown-linux-gnu/debug/build/zno-seal-src-test-f04cc592cd967030/out/install/lib/libseal-4.1.a(ciphertext.cpp.o):/usr/include/c++/13/functional:294: first defined here
          collect2: error: ld returned 1 exit status
@taqtiqa-mark taqtiqa-mark changed the title Build error: multiple definition of `std::placeholders::_1' Build error: multiple definition of std::placeholders::_1 and std::placeholders::_2 Feb 25, 2024
@taqtiqa-mark
Copy link
Author

This is resolved by building with Clang++ 16.0.6

The error is observed by building with G++ 13.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant