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
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
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,