diff --git a/_win_setargv_fix/readme.txt b/_win_setargv_fix/readme.txt new file mode 100644 index 0000000..53cb1b4 --- /dev/null +++ b/_win_setargv_fix/readme.txt @@ -0,0 +1,11 @@ +пришлось скомпилировать и скопировать файл сюда +C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x64\setargv.obj +C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86\setargv.obj + +использовал вот это +https://perldoc.pl/perlwin32 + +В итоге: + +cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\crt\src\linkopts\ +cl.exe /c /I. /D_CRTBLD setargv.cpp \ No newline at end of file diff --git a/_win_setargv_fix/setargv.cpp b/_win_setargv_fix/setargv.cpp new file mode 100644 index 0000000..6927888 --- /dev/null +++ b/_win_setargv_fix/setargv.cpp @@ -0,0 +1,15 @@ +// +// setargv.cpp +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// A link option that enables wildcard expansion for the arguments to main(). +// +#include + + + +extern "C" _crt_argv_mode __CRTDECL _get_startup_argv_mode() +{ + return _crt_argv_expanded_arguments; +} diff --git a/_win_setargv_fix/x64/setargv.obj b/_win_setargv_fix/x64/setargv.obj new file mode 100644 index 0000000..352b7e5 Binary files /dev/null and b/_win_setargv_fix/x64/setargv.obj differ diff --git a/_win_setargv_fix/x86/setargv.obj b/_win_setargv_fix/x86/setargv.obj new file mode 100644 index 0000000..34ba778 Binary files /dev/null and b/_win_setargv_fix/x86/setargv.obj differ