Advertisement
fsb4000

error

Sep 25th, 2020 (edited)
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. C:\Dev\STL\playground\modules>mkhessapp.bat
  2.  
  3. C:\Dev\STL\playground\modules>del chess.hpp.obj chess.hpp.ifc chess.obj libchess.ifc libchess.ifc.obj libchess.lib chessapp.obj chessapp.exe
  4.  
  5. C:\Dev\STL\playground\modules>set cflags=/nologo /EHsc /std:c++latest /FS /Zc:preprocessor /permissive- /experimental:newLambdaProcessor /showResolvedHeader /experimental:module
  6.  
  7. C:\Dev\STL\playground\modules>cl /exportHeader "<chess.hpp>" /nologo /EHsc /std:c++latest /FS /Zc:preprocessor /permissive- /experimental:newLambdaProcessor /showResolvedHeader /experimental:module /Fo"chess.hpp.obj" /ifcOutput "chess.hpp.ifc" /I"."
  8. <chess.hpp>
  9. Примечание: <chess.hpp> разрешен в "C:/Dev/STL/playground/modules/chess.hpp"
  10.  
  11. C:\Dev\STL\playground\modules>cl "libchess.ixx" /interface /c /nologo /EHsc /std:c++latest /FS /Zc:preprocessor /permissive- /experimental:newLambdaProcessor /showResolvedHeader /experimental:module /ifcOutput "libchess.ifc" /Fo"libchess.ifc.obj" /I"." /headerUnit chess.hpp=chess.hpp.ifc
  12. libchess.ixx
  13.  
  14. C:\Dev\STL\playground\modules>cl "chess.cpp" /c /nologo /EHsc /std:c++latest /FS /Zc:preprocessor /permissive- /experimental:newLambdaProcessor /showResolvedHeader /experimental:module /Fo"chess.obj" /I"." /reference "libchess.ifc" /headerUnit chess.hpp=chess.hpp.ifc
  15. chess.cpp
  16.  
  17. C:\Dev\STL\playground\modules>lib /out:"libchess.lib" "libchess.ifc.obj" "chess.obj" "chess.hpp.obj"
  18. Microsoft (R) Library Manager Version 14.28.29304.1
  19. Copyright (C) Microsoft Corporation. All rights reserved.
  20.  
  21.  
  22. C:\Dev\STL\playground\modules>cl "chessapp.cpp" /nologo /EHsc /std:c++latest /FS /Zc:preprocessor /permissive- /experimental:newLambdaProcessor /showResolvedHeader /experimental:module /Fo"chessapp.obj" /Fe"chessapp.exe" /reference libchess.ifc /headerUnit chess.hpp=chess.hpp.ifc /link libchess.lib
  23. chessapp.cpp
  24. C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29304\include\fstream(690): error C2668: std::use_facet: неоднозначный вызов перегруженной функции
  25. C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29304\include\iosfwd(145): note: может быть "const _Facet &std::use_facet<std::codecvt<_Elem,char,std::_Narrow_char_traits<_Elem,int>::state_type>>(const std::locale &)"
  26. with
  27. [
  28. _Facet=std::codecvt<char,char,std::_Narrow_char_traits<char,int>::state_type>,
  29. _Elem=char
  30. ]
  31. C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29304\include\xlocale(426): note: или "const _Facet &std::use_facet<std::codecvt<_Elem,char,std::_Narrow_char_traits<_Elem,int>::state_type>>(const std::locale &)"
  32. with
  33. [
  34. _Facet=std::codecvt<char,char,std::_Narrow_char_traits<char,int>::state_type>,
  35. _Elem=char
  36. ]
  37. C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29304\include\fstream(690): note: при попытке сопоставить список аргументов "(const std::locale)"
  38. C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29304\include\fstream(688): note: во время компиляции функции-члена класс шаблон "void std::basic_filebuf<char,std::char_traits<char>>::imbue(const std::locale &)"
  39. C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29304\include\fstream(1175): note: выполняется компиляция ссылки на экземпляр класс шаблон функции "std::basic_filebuf<char,std::char_traits<char>>"
  40. chessapp.cpp(8): note: выполняется компиляция ссылки на экземпляр класс шаблон функции "std::basic_ofstream<char,std::char_traits<char>>"
  41.  
  42. C:\Dev\STL\playground\modules>chessapp.exe
  43. "chessapp.exe" не является внутренней или внешней
  44. командой, исполняемой программой или пакетным файлом.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement