text
text copied to clipboard
build libtorchtext in windows11 meet error
🐛 Bug
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Environment windows 11 libtorch 1.31.1 debug deps
I git clone the text repo git submodule update --init --recursive mkdir build cd build git submodule update cmake -DCMAKE_PREFIX_PATH="$(python -c 'import torch;print(torch.utils.cmake_prefix_path)')" -DRE2_BUILD_TESTING:BOOL=OFF -DBUILD_TESTING:BOOL=OFF -DSPM_ENABLE_SHARED=OFF ..
cmake --build .
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py python -c "import torchtext; print("torchtext version is ", torchtext.version)"
- PyTorch Version (e.g., 1.0): 1.31.1
- OS (e.g., Linux): win11
- How you installed PyTorch (`conda`, `pip`, source):
- Build command you used (if compiling from source):
- Python version: 3.10
- CUDA/cuDNN version: 11.6
- GPU models and configuration: rtx 3060
- Any other relevant information:
**Additional context** Add any other context about the problem here.
regex.cpp
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(694,13): warning C4820: 're2::RE2::Options': '1' bytes padding
added after data member 're2::RE2::Options::log_errors_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchte
xt.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(752,15): warning C4820: 're2::RE2': '4' bytes padding added aft
er data member 're2::RE2::error_code_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(755,30): warning C4820: 're2::RE2': '7' bytes padding added aft
er data member 're2::RE2::prefix_foldcase_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(761,28): warning C4820: 're2::RE2': '3' bytes padding added aft
er data member 're2::RE2::is_one_pass_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(943,20): warning C4820: 're2::LazyRE2': '3' bytes padding added
after data member 're2::LazyRE2::barrier_against_excess_initializers_' [C:\Users\hai71\Documents\text\build\torchtext\
csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(952,1): warning C4625: 're2::LazyRE2': copy constructor was imp
licitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: '
torch/csrc/api/include/torch/types.h': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\li
btorchtext.vcxproj]
regex_tokenizer.cpp
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(694,13): warning C4820: 're2::RE2::Options': '1' bytes padding
added after data member 're2::RE2::Options::log_errors_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchte
xt.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(752,15): warning C4820: 're2::RE2': '4' bytes padding added aft
er data member 're2::RE2::error_code_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(755,30): warning C4820: 're2::RE2': '7' bytes padding added aft
er data member 're2::RE2::prefix_foldcase_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(761,28): warning C4820: 're2::RE2': '3' bytes padding added aft
er data member 're2::RE2::is_one_pass_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(943,20): warning C4820: 're2::LazyRE2': '3' bytes padding added
after data member 're2::LazyRE2::barrier_against_excess_initializers_' [C:\Users\hai71\Documents\text\build\torchtext\
csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(952,1): warning C4625: 're2::LazyRE2': copy constructor was imp
licitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: '
torch/csrc/api/include/torch/types.h': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\li
btorchtext.vcxproj]
register_torchbindings.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: '
torch/csrc/api/include/torch/types.h': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\li
btorchtext.vcxproj]
sentencepiece.cpp
C:\Users\hai71\Documents\text\third_party\sentencepiece\src\sentencepiece_processor.h(494,1): warning C4625: 'sentencep
iece::SentencePieceProcessor': copy constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\
torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\sentencepiece\src\sentencepiece_processor.h(494,1): warning C4626: 'sentencep
iece::SentencePieceProcessor': assignment operator was implicitly defined as deleted [C:\Users\hai71\Documents\text\bui
ld\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: '
torch/csrc/api/include/torch/types.h': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\li
btorchtext.vcxproj]
vectors.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,5): warning C4668: '__has_attribute' is not d
efined as a preprocessor macro, replacing with '0' for '#if/#elif' [C:\Users\hai71\Documents\text\build\torchtext\csrc\
libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,20): warning C4067: unexpected tokens followi
ng preprocessor directive - expected a newline [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj
]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2010,13): warning
C5262: implicit fall-through occurs here; are you missing a break statement? Use [[fallthrough]] when a break statement
is intentionally omitted between cases [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2007,17): message
: statement that may fall through is here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2210,13): warning
C5262: implicit fall-through occurs here; are you missing a break statement? Use [[fallthrough]] when a break statement
is intentionally omitted between cases [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2207,17): message
: statement that may fall through is here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/StringUtil.h(134,1): warning C4820: 'c10::SourceLocation': '
4' bytes padding added after data member 'c10::SourceLocation::line' [C:\Users\hai71\Documents\text\build\torchtext\csr
c\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,45): warning C4275: non dll-interface class '
std::exception' used as base for dll-interface class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\l
ibtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\vcruntime_exception.h(48,7
): message : see declaration of 'std::exception' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxpr
oj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,15): message : see declaration of 'c10::Error
' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(30,15): warning C4251: 'c10::Error::msg_': class
'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by client
s of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message
: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\te
xt\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,28): warning C4251: 'c10::Error::context_': c
lass 'std::vector<std::string,std::allocator<std::string>>' needs to have dll-interface to be used by clients of class
'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,8): message : see declaration of 'std::vector
<std::string,std::allocator<std::string>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(40,15): warning C4251: 'c10::Error::backtrace_':
class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by
clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message
: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\te
xt\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(47,15): warning C4251: 'c10::Error::what_': clas
s 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clien
ts of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message
: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\te
xt\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(48,15): warning C4251: 'c10::Error::what_without
_backtrace_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface t
o be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message
: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\te
xt\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(200,1): warning C4623: 'c10::IndexError': defaul
t constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxpro
j]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(206,1): warning C4623: 'c10::ValueError': defaul
t constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxpro
j]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(212,1): warning C4623: 'c10::TypeError': default
constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj
]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(218,1): warning C4623: 'c10::NotImplementedError
': default constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchte
xt.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(224,1): warning C4623: 'c10::EnforceFiniteError'
: default constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtex
t.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(230,1): warning C4623: 'c10::OnnxfiBackendSystem
Error': default constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libto
rchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(236,1): warning C4623: 'c10::LinAlgError': defau
lt constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxpr
oj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(246,1): warning C4820: 'double_co
nversion::Vector<char>': '4' bytes padding added after data member 'double_conversion::Vector<char>::length_' [C:\Users
\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(316,16): message : see reference
to class template instantiation 'double_conversion::Vector<char>' being compiled [C:\Users\hai71\Documents\text\build\t
orchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(322,1): warning C4820: 'double_co
nversion::StringBuilder': '4' bytes padding added after data member 'double_conversion::StringBuilder::position_' [C:\U
sers\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(290,1): warning C4365: 'argument'
: conversion from 'int' to 'size_t', signed/unsigned mismatch [C:\Users\hai71\Documents\text\build\torchtext\csrc\libto
rchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\string-to-double.h(209,16): warning C4820
: 'double_conversion::StringToDoubleConverter': '4' bytes padding added after data member 'double_conversion::StringToD
oubleConverter::flags_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\string-to-double.h(222,1): warning C4820:
'double_conversion::StringToDoubleConverter': '6' bytes padding added after data member 'double_conversion::StringToDo
ubleConverter::separator_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\double-to-string.h(382,37): warning C4820
: 'double_conversion::DoubleToStringConverter': '4' bytes padding added after data member 'double_conversion::DoubleToS
tringConverter::flags_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\double-to-string.h(385,13): warning C4820
: 'double_conversion::DoubleToStringConverter': '3' bytes padding added after data member 'double_conversion::DoubleToS
tringConverter::exponent_character_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\diy-fp.h(133,1): warning C4820: 'double_c
onversion::DiyFp': '4' bytes padding added after data member 'double_conversion::DiyFp::e_' [C:\Users\hai71\Documents\t
ext\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: '
torch/csrc/api/include/torch/types.h': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\li
btorchtext.vcxproj]
vocab.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,5): warning C4668: '__has_attribute' is not d
efined as a preprocessor macro, replacing with '0' for '#if/#elif' [C:\Users\hai71\Documents\text\build\torchtext\csrc\
libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,20): warning C4067: unexpected tokens followi
ng preprocessor directive - expected a newline [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj
]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2010,13): warning
C5262: implicit fall-through occurs here; are you missing a break statement? Use [[fallthrough]] when a break statement
is intentionally omitted between cases [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2007,17): message
: statement that may fall through is here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2210,13): warning
C5262: implicit fall-through occurs here; are you missing a break statement? Use [[fallthrough]] when a break statement
is intentionally omitted between cases [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2207,17): message
: statement that may fall through is here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/StringUtil.h(134,1): warning C4820: 'c10::SourceLocation': '
4' bytes padding added after data member 'c10::SourceLocation::line' [C:\Users\hai71\Documents\text\build\torchtext\csr
c\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,45): warning C4275: non dll-interface class '
std::exception' used as base for dll-interface class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\l
ibtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\vcruntime_exception.h(48,7
): message : see declaration of 'std::exception' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxpr
oj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,15): message : see declaration of 'c10::Error
' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(30,15): warning C4251: 'c10::Error::msg_': class
'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by client
s of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message
: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\te
xt\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,28): warning C4251: 'c10::Error::context_': c
lass 'std::vector<std::string,std::allocator<std::string>>' needs to have dll-interface to be used by clients of class
'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,8): message : see declaration of 'std::vector
<std::string,std::allocator<std::string>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(40,15): warning C4251: 'c10::Error::backtrace_':
class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by
clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message
: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\te
xt\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(47,15): warning C4251: 'c10::Error::what_': clas
s 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clien
ts of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message
: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\te
xt\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(48,15): warning C4251: 'c10::Error::what_without
_backtrace_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface t
o be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message
: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\te
xt\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(200,1): warning C4623: 'c10::IndexError': defaul
t constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxpro
j]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(206,1): warning C4623: 'c10::ValueError': defaul
t constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxpro
j]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(212,1): warning C4623: 'c10::TypeError': default
constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj
]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(218,1): warning C4623: 'c10::NotImplementedError
': default constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchte
xt.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(224,1): warning C4623: 'c10::EnforceFiniteError'
: default constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtex
t.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(230,1): warning C4623: 'c10::OnnxfiBackendSystem
Error': default constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libto
rchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(236,1): warning C4623: 'c10::LinAlgError': defau
lt constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxpr
oj]
C:\Users\hai71\Documents\text\torchtext\csrc\vocab.cpp(2,10): fatal error C1083: Cannot open include file: 'torch/torc
h.h': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
bert_tokenizer.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,5): warning C4668: '__has_attribute' is not d
efined as a preprocessor macro, replacing with '0' for '#if/#elif' [C:\Users\hai71\Documents\text\build\torchtext\csrc\
libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,20): warning C4067: unexpected tokens followi
ng preprocessor directive - expected a newline [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj
]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2010,13): warning
C5262: implicit fall-through occurs here; are you missing a break statement? Use [[fallthrough]] when a break statement
is intentionally omitted between cases [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2007,17): message
: statement that may fall through is here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2210,13): warning
C5262: implicit fall-through occurs here; are you missing a break statement? Use [[fallthrough]] when a break statement
is intentionally omitted between cases [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2207,17): message
: statement that may fall through is here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: '
torch/csrc/api/include/torch/types.h': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\li
btorchtext.vcxproj]
Generating Code...
PS C:\Users\hai71\Documents\text\build> cmake --build .
MSBuild version 17.4.1+9a89d02ff for .NET Framework
double-conversion.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\double-conversion\Debug\double-conversion.lib
re2.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\re2\Debug\re2.lib
sentencepiece-static.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\sentencepiece\src\Debug\sentencepiece.lib
sentencepiece_train-static.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\sentencepiece\src\Debug\sentencepiece_train.lib
utf8proc.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\utf8proc\Debug\utf8proc_static.lib
clip_tokenizer.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
gpt2_bpe_tokenizer.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
regex.cpp
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(694,13): warning C4820: 're2::RE2::Options': '1' bytes padding added after data member 're2::RE2::O
ptions::log_errors_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(752,15): warning C4820: 're2::RE2': '4' bytes padding added after data member 're2::RE2::error_code
_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(755,30): warning C4820: 're2::RE2': '7' bytes padding added after data member 're2::RE2::prefix_fol
dcase_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(761,28): warning C4820: 're2::RE2': '3' bytes padding added after data member 're2::RE2::is_one_pas
s_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(943,20): warning C4820: 're2::LazyRE2': '3' bytes padding added after data member 're2::LazyRE2::ba
rrier_against_excess_initializers_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(952,1): warning C4625: 're2::LazyRE2': copy constructor was implicitly defined as deleted [C:\Users
\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
regex_tokenizer.cpp
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(694,13): warning C4820: 're2::RE2::Options': '1' bytes padding added after data member 're2::RE2::O
ptions::log_errors_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(752,15): warning C4820: 're2::RE2': '4' bytes padding added after data member 're2::RE2::error_code
_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(755,30): warning C4820: 're2::RE2': '7' bytes padding added after data member 're2::RE2::prefix_fol
dcase_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(761,28): warning C4820: 're2::RE2': '3' bytes padding added after data member 're2::RE2::is_one_pas
s_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(943,20): warning C4820: 're2::LazyRE2': '3' bytes padding added after data member 're2::LazyRE2::ba
rrier_against_excess_initializers_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(952,1): warning C4625: 're2::LazyRE2': copy constructor was implicitly defined as deleted [C:\Users
\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
register_torchbindings.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
sentencepiece.cpp
C:\Users\hai71\Documents\text\third_party\sentencepiece\src\sentencepiece_processor.h(494,1): warning C4625: 'sentencepiece::SentencePieceProcessor': copy
constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\sentencepiece\src\sentencepiece_processor.h(494,1): warning C4626: 'sentencepiece::SentencePieceProcessor': assig
nment operator was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
vectors.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,5): warning C4668: '__has_attribute' is not defined as a preprocessor macro, repl
acing with '0' for '#if/#elif' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,20): warning C4067: unexpected tokens following preprocessor directive - expected
a newline [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2010,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2007,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2210,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2207,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/StringUtil.h(134,1): warning C4820: 'c10::SourceLocation': '4' bytes padding added after data me
mber 'c10::SourceLocation::line' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,45): warning C4275: non dll-interface class 'std::exception' used as base for dll
-interface class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\vcruntime_exception.h(48,7): message : see declaration of 'std
::exception' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,15): message : see declaration of 'c10::Error' [C:\Users\hai71\Documents\text\bui
ld\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(30,15): warning C4251: 'c10::Error::msg_': class 'std::basic_string<char,std::char_t
raits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\c
src\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,28): warning C4251: 'c10::Error::context_': class 'std::vector<std::string,std::a
llocator<std::string>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorc
htext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,8): message : see declaration of 'std::vector<std::string,std::allocator<std::str
ing>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(40,15): warning C4251: 'c10::Error::backtrace_': class 'std::basic_string<char,std::
char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torch
text\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(47,15): warning C4251: 'c10::Error::what_': class 'std::basic_string<char,std::char_
traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\
csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(48,15): warning C4251: 'c10::Error::what_without_backtrace_': class 'std::basic_stri
ng<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\tex
t\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(200,1): warning C4623: 'c10::IndexError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(206,1): warning C4623: 'c10::ValueError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(212,1): warning C4623: 'c10::TypeError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(218,1): warning C4623: 'c10::NotImplementedError': default constructor was implicitl
y defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(224,1): warning C4623: 'c10::EnforceFiniteError': default constructor was implicitly
defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(230,1): warning C4623: 'c10::OnnxfiBackendSystemError': default constructor was impl
icitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(236,1): warning C4623: 'c10::LinAlgError': default constructor was implicitly define
d as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(246,1): warning C4820: 'double_conversion::Vector<char>': '4' bytes p
adding added after data member 'double_conversion::Vector<char>::length_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(316,16): message : see reference to class template instantiation 'dou
ble_conversion::Vector<char>' being compiled [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(322,1): warning C4820: 'double_conversion::StringBuilder': '4' bytes
padding added after data member 'double_conversion::StringBuilder::position_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(290,1): warning C4365: 'argument': conversion from 'int' to 'size_t',
signed/unsigned mismatch [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\string-to-double.h(209,16): warning C4820: 'double_conversion::StringToDouble
Converter': '4' bytes padding added after data member 'double_conversion::StringToDoubleConverter::flags_' [C:\Users\hai71\Documents\text\build\torchtext\c
src\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\string-to-double.h(222,1): warning C4820: 'double_conversion::StringToDoubleC
onverter': '6' bytes padding added after data member 'double_conversion::StringToDoubleConverter::separator_' [C:\Users\hai71\Documents\text\build\torchtex
t\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\double-to-string.h(382,37): warning C4820: 'double_conversion::DoubleToString
Converter': '4' bytes padding added after data member 'double_conversion::DoubleToStringConverter::flags_' [C:\Users\hai71\Documents\text\build\torchtext\c
src\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\double-to-string.h(385,13): warning C4820: 'double_conversion::DoubleToString
Converter': '3' bytes padding added after data member 'double_conversion::DoubleToStringConverter::exponent_character_' [C:\Users\hai71\Documents\text\buil
d\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\diy-fp.h(133,1): warning C4820: 'double_conversion::DiyFp': '4' bytes padding
added after data member 'double_conversion::DiyFp::e_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
vocab.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,5): warning C4668: '__has_attribute' is not defined as a preprocessor macro, repl
acing with '0' for '#if/#elif' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,20): warning C4067: unexpected tokens following preprocessor directive - expected
a newline [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2010,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2007,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2210,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2207,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/StringUtil.h(134,1): warning C4820: 'c10::SourceLocation': '4' bytes padding added after data me
mber 'c10::SourceLocation::line' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,45): warning C4275: non dll-interface class 'std::exception' used as base for dll
-interface class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\vcruntime_exception.h(48,7): message : see declaration of 'std
::exception' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,15): message : see declaration of 'c10::Error' [C:\Users\hai71\Documents\text\bui
ld\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(30,15): warning C4251: 'c10::Error::msg_': class 'std::basic_string<char,std::char_t
raits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\c
src\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,28): warning C4251: 'c10::Error::context_': class 'std::vector<std::string,std::a
llocator<std::string>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorc
htext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,8): message : see declaration of 'std::vector<std::string,std::allocator<std::str
ing>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(40,15): warning C4251: 'c10::Error::backtrace_': class 'std::basic_string<char,std::
char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torch
text\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(47,15): warning C4251: 'c10::Error::what_': class 'std::basic_string<char,std::char_
traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\
csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(48,15): warning C4251: 'c10::Error::what_without_backtrace_': class 'std::basic_stri
ng<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\tex
t\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(200,1): warning C4623: 'c10::IndexError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(206,1): warning C4623: 'c10::ValueError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(212,1): warning C4623: 'c10::TypeError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(218,1): warning C4623: 'c10::NotImplementedError': default constructor was implicitl
y defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(224,1): warning C4623: 'c10::EnforceFiniteError': default constructor was implicitly
defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(230,1): warning C4623: 'c10::OnnxfiBackendSystemError': default constructor was impl
icitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(236,1): warning C4623: 'c10::LinAlgError': default constructor was implicitly define
d as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\torchtext\csrc\vocab.cpp(2,10): fatal error C1083: Cannot open include file: 'torch/torch.h': No such file or directory [C:\
Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
bert_tokenizer.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,5): warning C4668: '__has_attribute' is not defined as a preprocessor macro, repl
acing with '0' for '#if/#elif' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,20): warning C4067: unexpected tokens following preprocessor directive - expected
a newline [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2010,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2007,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2210,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2207,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
Generating Code...
PS C:\Users\hai71\Documents\text\build> cmake --build .
MSBuild version 17.4.1+9a89d02ff for .NET Framework
double-conversion.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\double-conversion\Debug\double-conversion.lib
re2.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\re2\Debug\re2.lib
sentencepiece-static.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\sentencepiece\src\Debug\sentencepiece.lib
sentencepiece_train-static.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\sentencepiece\src\Debug\sentencepiece_train.lib
utf8proc.vcxproj -> C:\Users\hai71\Documents\text\build\third_party\utf8proc\Debug\utf8proc_static.lib
clip_tokenizer.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
gpt2_bpe_tokenizer.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
regex.cpp
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(694,13): warning C4820: 're2::RE2::Options': '1' bytes padding added after data member 're2::RE2::O
ptions::log_errors_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(752,15): warning C4820: 're2::RE2': '4' bytes padding added after data member 're2::RE2::error_code
_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(755,30): warning C4820: 're2::RE2': '7' bytes padding added after data member 're2::RE2::prefix_fol
dcase_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(761,28): warning C4820: 're2::RE2': '3' bytes padding added after data member 're2::RE2::is_one_pas
s_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(943,20): warning C4820: 're2::LazyRE2': '3' bytes padding added after data member 're2::LazyRE2::ba
rrier_against_excess_initializers_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(952,1): warning C4625: 're2::LazyRE2': copy constructor was implicitly defined as deleted [C:\Users
\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
regex_tokenizer.cpp
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(694,13): warning C4820: 're2::RE2::Options': '1' bytes padding added after data member 're2::RE2::O
ptions::log_errors_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(752,15): warning C4820: 're2::RE2': '4' bytes padding added after data member 're2::RE2::error_code
_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(755,30): warning C4820: 're2::RE2': '7' bytes padding added after data member 're2::RE2::prefix_fol
dcase_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(761,28): warning C4820: 're2::RE2': '3' bytes padding added after data member 're2::RE2::is_one_pas
s_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(943,20): warning C4820: 're2::LazyRE2': '3' bytes padding added after data member 're2::LazyRE2::ba
rrier_against_excess_initializers_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\re2\re2/re2.h(952,1): warning C4625: 're2::LazyRE2': copy constructor was implicitly defined as deleted [C:\Users
\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
register_torchbindings.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
sentencepiece.cpp
C:\Users\hai71\Documents\text\third_party\sentencepiece\src\sentencepiece_processor.h(494,1): warning C4625: 'sentencepiece::SentencePieceProcessor': copy
constructor was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\sentencepiece\src\sentencepiece_processor.h(494,1): warning C4626: 'sentencepiece::SentencePieceProcessor': assig
nment operator was implicitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
vectors.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,5): warning C4668: '__has_attribute' is not defined as a preprocessor macro, repl
acing with '0' for '#if/#elif' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,20): warning C4067: unexpected tokens following preprocessor directive - expected
a newline [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2010,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2007,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2210,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2207,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/StringUtil.h(134,1): warning C4820: 'c10::SourceLocation': '4' bytes padding added after data me
mber 'c10::SourceLocation::line' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,45): warning C4275: non dll-interface class 'std::exception' used as base for dll
-interface class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\vcruntime_exception.h(48,7): message : see declaration of 'std
::exception' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,15): message : see declaration of 'c10::Error' [C:\Users\hai71\Documents\text\bui
ld\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(30,15): warning C4251: 'c10::Error::msg_': class 'std::basic_string<char,std::char_t
raits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\c
src\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,28): warning C4251: 'c10::Error::context_': class 'std::vector<std::string,std::a
llocator<std::string>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorc
htext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,8): message : see declaration of 'std::vector<std::string,std::allocator<std::str
ing>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(40,15): warning C4251: 'c10::Error::backtrace_': class 'std::basic_string<char,std::
char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torch
text\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(47,15): warning C4251: 'c10::Error::what_': class 'std::basic_string<char,std::char_
traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\
csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(48,15): warning C4251: 'c10::Error::what_without_backtrace_': class 'std::basic_stri
ng<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\tex
t\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(200,1): warning C4623: 'c10::IndexError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(206,1): warning C4623: 'c10::ValueError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(212,1): warning C4623: 'c10::TypeError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(218,1): warning C4623: 'c10::NotImplementedError': default constructor was implicitl
y defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(224,1): warning C4623: 'c10::EnforceFiniteError': default constructor was implicitly
defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(230,1): warning C4623: 'c10::OnnxfiBackendSystemError': default constructor was impl
icitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(236,1): warning C4623: 'c10::LinAlgError': default constructor was implicitly define
d as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(246,1): warning C4820: 'double_conversion::Vector<char>': '4' bytes p
adding added after data member 'double_conversion::Vector<char>::length_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(316,16): message : see reference to class template instantiation 'dou
ble_conversion::Vector<char>' being compiled [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(322,1): warning C4820: 'double_conversion::StringBuilder': '4' bytes
padding added after data member 'double_conversion::StringBuilder::position_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\utils.h(290,1): warning C4365: 'argument': conversion from 'int' to 'size_t',
signed/unsigned mismatch [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\string-to-double.h(209,16): warning C4820: 'double_conversion::StringToDouble
Converter': '4' bytes padding added after data member 'double_conversion::StringToDoubleConverter::flags_' [C:\Users\hai71\Documents\text\build\torchtext\c
src\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\string-to-double.h(222,1): warning C4820: 'double_conversion::StringToDoubleC
onverter': '6' bytes padding added after data member 'double_conversion::StringToDoubleConverter::separator_' [C:\Users\hai71\Documents\text\build\torchtex
t\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\double-to-string.h(382,37): warning C4820: 'double_conversion::DoubleToString
Converter': '4' bytes padding added after data member 'double_conversion::DoubleToStringConverter::flags_' [C:\Users\hai71\Documents\text\build\torchtext\c
src\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\double-to-string.h(385,13): warning C4820: 'double_conversion::DoubleToString
Converter': '3' bytes padding added after data member 'double_conversion::DoubleToStringConverter::exponent_character_' [C:\Users\hai71\Documents\text\buil
d\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\third_party\double-conversion\double-conversion\diy-fp.h(133,1): warning C4820: 'double_conversion::DiyFp': '4' bytes padding
added after data member 'double_conversion::DiyFp::e_' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
vocab.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,5): warning C4668: '__has_attribute' is not defined as a preprocessor macro, repl
acing with '0' for '#if/#elif' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,20): warning C4067: unexpected tokens following preprocessor directive - expected
a newline [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2010,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2007,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2210,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2207,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/StringUtil.h(134,1): warning C4820: 'c10::SourceLocation': '4' bytes padding added after data me
mber 'c10::SourceLocation::line' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,45): warning C4275: non dll-interface class 'std::exception' used as base for dll
-interface class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\vcruntime_exception.h(48,7): message : see declaration of 'std
::exception' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(28,15): message : see declaration of 'c10::Error' [C:\Users\hai71\Documents\text\bui
ld\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(30,15): warning C4251: 'c10::Error::msg_': class 'std::basic_string<char,std::char_t
raits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\c
src\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,28): warning C4251: 'c10::Error::context_': class 'std::vector<std::string,std::a
llocator<std::string>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorc
htext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(35,8): message : see declaration of 'std::vector<std::string,std::allocator<std::str
ing>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(40,15): warning C4251: 'c10::Error::backtrace_': class 'std::basic_string<char,std::
char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torch
text\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(47,15): warning C4251: 'c10::Error::what_': class 'std::basic_string<char,std::char_
traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\text\build\torchtext\
csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(48,15): warning C4251: 'c10::Error::what_without_backtrace_': class 'std::basic_stri
ng<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error' [C:\Users\hai71\Documents\tex
t\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xstring(5297,17): message : see declaration of 'std::basic_str
ing<char,std::char_traits<char>,std::allocator<char>>' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(200,1): warning C4623: 'c10::IndexError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(206,1): warning C4623: 'c10::ValueError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(212,1): warning C4623: 'c10::TypeError': default constructor was implicitly defined
as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(218,1): warning C4623: 'c10::NotImplementedError': default constructor was implicitl
y defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(224,1): warning C4623: 'c10::EnforceFiniteError': default constructor was implicitly
defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(230,1): warning C4623: 'c10::OnnxfiBackendSystemError': default constructor was impl
icitly defined as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/util/Exception.h(236,1): warning C4623: 'c10::LinAlgError': default constructor was implicitly define
d as deleted [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Users\hai71\Documents\text\torchtext\csrc\vocab.cpp(2,10): fatal error C1083: Cannot open include file: 'torch/torch.h': No such file or directory [C:\
Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
bert_tokenizer.cpp
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,5): warning C4668: '__has_attribute' is not defined as a preprocessor macro, repl
acing with '0' for '#if/#elif' [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\c10/macros/Macros.h(143,20): warning C4067: unexpected tokens following preprocessor directive - expected
a newline [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2010,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2007,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2210,13): warning C5262: implicit fall-through occurs
here; are you missing a break statement? Use [[fallthrough]] when a break statement is intentionally omitted between cases [C:\Users\hai71\Documents\text\b
uild\torchtext\csrc\libtorchtext.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\include\xlocale(2207,17): message : statement that may fall through is
here [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
C:\Apps\vcpkg\vcpkg\installed\x64-windows\include\torch/script.h(3,10): fatal error C1083: Cannot open include file: 'torch/csrc/api/include/torch/types.h
': No such file or directory [C:\Users\hai71\Documents\text\build\torchtext\csrc\libtorchtext.vcxproj]
Generating Code...
Hey @mullerhai. Would you be able to elaborate on how you downloaded and installed PyTorch? Did you follow the instructions on https://pytorch.org/?