Thread overview | |||||
---|---|---|---|---|---|
|
May 03, 2018 LDC phobos2-ldc.lib(json.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86' | ||||
---|---|---|---|---|
| ||||
trying to compile a simple program in x86. Compiles fine in dmd and ldcx64. Seems like ldc is using the wrong lib for some reason? phobos2-ldc.lib(json.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86' Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\link.exe failed with status: 1112 Tried replacing the x64 dir with the x86 and it didn't change so it isn't the library arch best I can tell. Maybe this is a cross compilation issue? |
May 04, 2018 Re: LDC phobos2-ldc.lib(json.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86' | ||||
---|---|---|---|---|
| ||||
Posted in reply to IntegratedDimensions | On Thursday, 3 May 2018 at 23:47:40 UTC, IntegratedDimensions wrote:
> trying to compile a simple program in x86. Compiles fine in dmd and ldcx64.
>
> Seems like ldc is using the wrong lib for some reason?
>
>
> phobos2-ldc.lib(json.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
To help, we need more details, such as what code are you compiling, what version of LDC, and what commandline.
- Johan
|
May 04, 2018 Re: LDC phobos2-ldc.lib(json.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86' | ||||
---|---|---|---|---|
| ||||
Posted in reply to IntegratedDimensions | On Thursday, 3 May 2018 at 23:47:40 UTC, IntegratedDimensions wrote:
> Maybe this is a cross compilation issue?
Looks like you simply didn't download the LDC multilib package.
|
Copyright © 1999-2021 by the D Language Foundation