Skip to content

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

@TheMaverickProgrammer

Description

@TheMaverickProgrammer

I can confirm I'm using the correct version of SFML 2.3 and it is for x64 arch.

I try running py setup.py install and it cannot find SFML. I cannot seem to direct it to the installation directory (same folder as setup.py)

I try building it (google results suggested this)

py setup.py build_ext --include-dirs=SFML-2.3-windows/SFML-2.3/include -LSFML-2.3-windows/SFML-2.3/lib

and while we make progress, it fails:

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x86\\link.exe' failed with exit status 1112

No idea why it keeps trying against x86. I even manually changed the arch settings at the top of setup.py to x64 just to force it. No dice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions