-
Notifications
You must be signed in to change notification settings - Fork 5
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
[MSVC] DCTL failed to build due to error C2039 with msvc on Windows #25
Comments
@Zhaojun-Liu the error is on my part, I have been changing the |
Okay, thank you for the quickly reply. 😃 |
@Zhaojun-Liu can you please open an issue on dctl as well? |
Ok, see rhalbersma/dctl#33. |
bit_set itself builds cleanly and I've exposed all necessary methods for dependent project ( |
@Zhaojun-Liu I have pushed a new commit removing some C++23 constructs currently not supported by MSVC. Could you please update your copy of this repo and do the canonical CMake steps as follows:
Once this works succesfully, I can take a look at the DCTL repo again. |
Hi @rhalbersma, For details (with VS2022 x64 Native Tools command):
Steps to build bit_set , based on your steps, I just updated the cmake step and added the extra 3 packages using vcpkg as follows, it failed and I attached the build log "cmake_build_bs.log", I also tried to build with msbuild, that is replace step 6 with
bit_set build logs (same failures in the 2 logs): |
@Zhaojun-Liu sorry, I missed a few size_t literals (just grepped for 0 and 1, but there were a few more) in the unit tests. Should be fixed now. Thanks for testing this so thoroughly. Note that you might also have to link to Google Benchmark (not sure how if it's within vcpkg yet) to build all the benchmarks. |
Hi @rhalbersma, I installed Google Benchmark with vcpkg, it is in vcpkg, you can see https://github.com/microsoft/vcpkg/blob/master/ports/benchmark/vcpkg.json, but with latest commit(0c182bb), it still failed, please see the attachment. I'm not sure if there's anything else I need to configure? |
At this point I'll have to bite the bullet and install msvc I think. The remaining errors in the test are benign and related to function template argument deduction in combination with named concepts and or the |
@Zhaojun-Liu I managed to successfully compile and run most of the unit tests. Only the benchmarks and the sieve tests are not compiling. MSVC doesn't grok the proxy references in all instances, and I had to write out a 2-legged range call to You should be able to compile and then run `ctest -E "benchmark|sieve" and get 100%. For now this is good enough. I might try and investigate the other errors later. |
Hi,
We build dctl with msvc on Windows, it failed due to the below errors, it looks a regression issue from 06cd028, can you help look this issue? Thanks.
More info:
the related repos and commit I used as follows:
dctl commit: de565a1
bit_set commit: c91bdd5
Tabula commit: ab6451c
Xstd commit: 4a1625d
Repro steps:
Repro file:
divide.txt
By the way, I found that for the bit_set repository, all commits after commit c91bdd5 cause the git clone command to fail on Windows with the following error message:
The text was updated successfully, but these errors were encountered: