46,185 questions
How compile 64-bit in Powershell and nmake?
Andrzej Borucki
6
Reputation points
I can compile in 32-bit mode.
I try build wxWidgets in 64-bit.
I try in PowerShell:
C:\wxWidgets-3.1.5\build\msw> nmake /f makefile.vc BUILD=release SHARED=1 TARGET_CPU=X64
I try:
- create copy of Powershell, instead "C:\Windows\system32" I change to "c:\Windows\SysWOW64" to PowerShell folder.
- try calling vcvars64.bat,vcvarsamd64_x86.bat,vcvarsx86_amd64.bat in PowerShell
and nothing, still error:
vc_mswudll_x64\basedll_dummy.obj : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\link.EXE"' : return code '0x458'
Stop.
Community Center | Not monitored
Sign in to answer