GraphMixer
GraphMixer copied to clipboard
Error C2131, C3863 while compling python setup.py on windows, python version 3.11/3.9
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:
The main errors are:
- 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
- sampler_core.cpp(243): error C3863: array type 'std::vector<NodeIDType, std::allocator<NodeIDType>> *[this->8<L_ALIGN>112]' is not assignable
- sampler_core.cpp(268): warning C4267: '=': conversion from 'size_t' to 'EdgeIDType', possible loss of data
- 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
@CongWeilin
Hi, we have only tested it on Ubuntu system. The cython sampler part may not work in Windows.