Build c extension in windows 10

Hi, everyone
I just install pytorch 0.4 in win10, and it works normally.
Bur when I try to use c extension as in this link
https://pytorch.org/tutorials/advanced/c_extension.html
it raised a link error,

my_lib.obj : error LNK2001: unresolved external symbol __imp_THFloatTensor_fill

my_lib.obj : error LNK2001: unresolved external symbol __imp_THFloatTensor_resizeAs

my_lib.obj : error LNK2001: unresolved external symbol __imp_THFloatTensor_isSameSizeAs

my_lib.obj : error LNK2001: unresolved external symbol __imp_THFloatTensor_cadd

._my_lib.pyd : fatal error LNK1120: 4 unresolved externals

I think the linker can not find the relevant libraries.
Is there any additional operation such as adding enviromental pathes to solve this problem?
The compiler in my computer is VS 14.0 (VS2015).
Thanks for any suggession.

https://pytorch.org/docs/stable/notes/windows.html#cffi-extension

1 Like

I think I got it. Thanks a lot.