From 2b4c580157dadcba6dd5c7a4a140c3b70fcb809a Mon Sep 17 00:00:00 2001 From: kleuter Date: Sun, 27 Sep 2020 17:26:01 +0200 Subject: [PATCH] _win_setargv_fix --- _win_setargv_fix/readme.txt | 11 +++++++++++ _win_setargv_fix/setargv.cpp | 15 +++++++++++++++ _win_setargv_fix/x64/setargv.obj | Bin 0 -> 622 bytes _win_setargv_fix/x86/setargv.obj | Bin 0 -> 627 bytes 4 files changed, 26 insertions(+) create mode 100644 _win_setargv_fix/readme.txt create mode 100644 _win_setargv_fix/setargv.cpp create mode 100644 _win_setargv_fix/x64/setargv.obj create mode 100644 _win_setargv_fix/x86/setargv.obj 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 0000000000000000000000000000000000000000..352b7e55b6aefe2f47274190b5f27053ad217b2c GIT binary patch literal 622 zcmZ8eJ4*vW5T5mXfN3IPqsdX@x#VtrU}Yh8ihcfu zpq+*O00nCsdqMmGI%{%r@q?ZDW@dM1cRu^F9bTShcCH9O3>sjz&nUCQ)KSHeb5a+ zDIJ|(Se)I;7xT-xOajeZp_ph*uIA@gW(y0O3EGa=eBwI6H3g&x9V}(^HQy`aHv_#U z^>H?qW@EZ>A}U6}<(}^x8zph7H#zgnGGt)7hnN7*&3;6Q|VfkL*l_VYB7@@0G zDO_QNShAM=+Ws)q?WU15*f%8TtDvp|sMwC3Qhzg?`YeY%Yil`_WmNcSdQSjH(*A1qunx29N h6xtvvk*a8fqHV0?-F7Fw5sfdCuD*Odx57LFi*~ zU=}|-b4Iqp)HRZ~FlhTU#IsEDsvIem!%_^1gZ-kQu(8jI?r|_X{gHJCp1ArL{~Ux24l=yygSf1+F