GraphMixer icon indicating copy to clipboard operation
GraphMixer copied to clipboard

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

Open skaudrey opened this issue 2 years ago • 2 comments

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<NodeIDType>> *[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 avatar Aug 24 '23 15:08 skaudrey

@CongWeilin

skaudrey avatar Aug 24 '23 15:08 skaudrey

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

CongWeilin avatar Aug 24 '23 15:08 CongWeilin