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

Error C2131, C3863 while compling python setup.py on windows, python version 3.11/3.9 #3

Open
skaudrey opened this issue Aug 24, 2023 · 2 comments

Comments

@skaudrey
Copy link

Hi, I tried to compile the package according to the README on windows system, with python verison 3.11 or 3.9

Now there are many errors:
image

The main errors are:

  1. sampler_core.cpp(233): error C2131: expression did not evaluate to a constant
    sampler_core.cpp(233): note: failure was caused by a read of a variable outside its lifetime
  2. sampler_core.cpp(243): error C3863: array type 'std::vector<NodeIDType, std::allocator> *[this->8<L_ALIGN>112]' is not assignable
  3. sampler_core.cpp(268): warning C4267: '=': conversion from 'size_t' to 'EdgeIDType', possible loss of data
  4. sampler_core.cpp(315): error C3861: 'rand_r': identifier not found error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe'
    failed with exit code 2

I tried to fix the 3rd problem by forcing vector.size() to int type, but others I don't know how to fix.

Is it because of windows system or the incorrection version of C++ build tools?

Waiting for your reply.

Best,
Skaudrey

@skaudrey
Copy link
Author

@CongWeilin

@CongWeilin
Copy link
Owner

Hi, we have only tested it on Ubuntu system. The cython sampler part may not work in Windows.

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

2 participants