Hello,
I have "NTTOOLS=C:\PROGRA~2\MIB055~1\2017\PROFES~1\VC\Tools\MSVC\1416~1.270\" with trailing slash. But the '{}' will cut the last '\' and I got Link error "fatal error LNK1181: Eingabedatei "C:\PROGRA~2\MIB055~1\2017\PROFES~1\VC\Tools\MSVC\1416~1.270lib\x64\msvcrt.lib""
%if defined (BUILD_USING_VS2017) %if $(TARGET_PROCESSOR_ARCHITECTURE)=="x86" ntLib = ${ntTools}lib/x86/ AsmCmd = ${nttools}bin\HostX86\x86\ml %else ntLib = ${ntTools}lib/x64/ %endif %else ntLib = ${ntTools}lib${slashAmd64}/ %endif
After "correcting" the winntmdl.mki with missing '/' everything seems to be ok.
%if defined (BUILD_USING_VS2017) %if $(TARGET_PROCESSOR_ARCHITECTURE)=="x86" ntLib = ${ntTools}/lib/x86/ AsmCmd = ${nttools}/bin\HostX86\x86\ml %else ntLib = ${ntTools}/lib/x64/ %endif %else ntLib = ${ntTools}/lib${slashAmd64}/ %endif
Is this the right way to correct this, or did I miss something?
Thanks a Lot
Volker
Hi Volker Hüfner,
I believe your proposed change to be to me the most correct/safe form and not assuming every directory macro/variable will have a trailing slash (1 or more) and to use curly brackets to ensure a single required slash is consistent with the remainder of the value to append.
Please proceed with your modifications and I will file a defect to review and correct any inconsistencies like this found.
Thank you,Bob
Answer Verified By: Volker Hüfner