Skip to content

building with configuration VC-WIN64A fails #22385

Answered by mattcaswell
jamuir asked this question in Q&A
Discussion options

You must be logged in to vote

fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'

This normally occurs because of a discrepancy between the toolchain being used and the architecture that you are attempting to build for, i.e. using the x86 VC toolchain but attempting to build for VC-WIN64A (i.e. x86_64).

If you run the compiler (cl.exe) by itself with no arguments it should tell you what architecture it is targeting.

See:

openssl/NOTES-WINDOWS.md

Lines 65 to 73 in eaee176

4. Use Visual Studio Developer Command Prompt with administrative privileges,
choosing one of its variants depending on the intended architecture.
Or run `cmd` and execute `vcvarsall.bat` wit…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jamuir
Comment options

You must be logged in to vote
2 replies
@mattcaswell
Comment options

@jamuir
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #22371 on October 13, 2023 15:26.