[Mingw-w64-public] LD.exe: "File Format Not Recognized"

2019-09-12 Thread Brian Johnson
Hello, I have compiled a C source program to a .obj file on Windows using Clang. Next I tried to link it to produce an .exe with the following compiler string: ld -o C:\C_Projects\Test_Proj.exe C:\C_Projects\Test_Proj.obj but I get this error: file not recognized: file format not recognized

Re: [Mingw-w64-public] [PATCH] crt/misc/imaxdiv.c: Fix prototype of `lldiv()`.

2018-06-10 Thread Brian Johnson
Thanks very much for the replies. I was able to successfully link with the following string: sudo ld -dll -o PST.dll -e Main_Entry_fn -L/opt/minGW64/x86_64-w64-mingw32/lib/ -L/opt/Test_Project PST.obj -l:libmsvcr110.a The patch that's referred to in the email from Liu Hao -- do I need to appl

[Mingw-w64-public] Error linking to libmsvcr110.a

2018-06-07 Thread Brian Johnson
I am using minGW-64 to cross-link a Windows dll on a Linux (Ubuntu) cloud server, but I am having a problem linking to libmsvcr110.a (the GCC version of msvcrt.dll). The source file is written in NASM, and I compile with NASM both locally (on Windows) and on the Linux cloud server. In the cloud,