How compile 64-bit in Powershell and nmake?

Andrzej Borucki 6 Reputation points
2021-05-30T17:46:26.543+00:00

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
0 comments No comments
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.