while running nmake the nmake.exe is picking up from x86 path resulting in error: module machine type 'x64' conflicts with target machine type 'X86

191 views Asked by At

trying to build perl in windows x64 machine using nmake in VS 2022 developer command prompt , while running nmake the nmake.exe is picking up from x86 path resulting in error: module machine type 'x64' conflicts with target machine type 'X86'

i have added x64 path in environment variables and with where nmake its giving 2 paths and while making nmake its taking the exe from x86 path in the x64 machine.

C:\Program Files\Microsoft Visual Studio\2022\Professional>where nmake C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\nmake.exe C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64\nmake.exe

0

There are 0 answers