As reported by @Qinka, there will be an linking error if we build extensions on Windows. It complains about the missing of the variable definition extern THCState *state;. So may I know where this one was defined so as to export it for MSVC? @soumith Otherwise, we may change the example code to C++ since the definition of state can be acquired from ATen.
As reported by @Qinka, there will be an linking error if we build extensions on Windows. It complains about the missing of the variable definition
extern THCState *state;
. So may I know where this one was defined so as to export it for MSVC? @soumith Otherwise, we may change the example code to C++ since the definition of state can be acquired from ATen.