I’m trying to update an extension module of mine.
However, I am getting linker errors when building with msvc15: About THPVariableClass not being defined.
I could resolve it by removing the THP_CORE preprocessor definition, which seems to be used to activate __declspec(dllexport) as opposed to __declspec(dllimport).
I think that the flag came in from the caffe2 CMake target.
My question is whether it is the right thing to do, simply undefining THP_CORE.