www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - LDC phobos2-ldc.lib(json.obj) : fatal error LNK1112: module machine

reply IntegratedDimensions <IntegratedDimensions gmail.com> writes:
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 03 2018
next sibling parent Johan Engelen <j j.nl> writes:
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
prev sibling parent kinke <noone nowhere.com> writes:
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.
May 04 2018