Skip to content

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

Description

@skaudrey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions