-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add support for Windows? #19
Comments
问题出在vs,其不支持__int128关键字,换clion+mingw gcc64即可 |
Yeah, but Visual Studio C++ is my preferred compiler. I'm actually a bit surprised at the use of PS. Sorry, don't have time to dig through the code as this was more of a passing curiosity |
Yes, the windows environment has poor support for int128, but the linux environment can support int128. ps,I still haven't figured out why they have to use int128 |
The index construction algorithm uses int128 when the input keys are 64-bit ints. Indeed, at some point, it computes a product between two ints whose result may thus take up to 128 bits. If the input keys are int32s instead, int128 will not be used. About the support for int128 in Visual Studio there's this feature suggestion. |
@gvinciguerra Perhaps 64-bit input keys can be disabled when compiling on MSVC? Not sure how useful that would be though |
I just wanted to let you guys know that native Windows 64-bit build does work with MinGW-w64. You can find my build instructions at: https://github.com/brechtsanders/winlibs_recipes/blob/main/recipes/pgm-index.winlib This uses mman port to Windows for which you can find my build instructions at: https://github.com/brechtsanders/winlibs_recipes/blob/main/recipes/mman-win32.winlib |
On Visual Studio 2019, the code does not build:
The text was updated successfully, but these errors were encountered: