mstorsjo/llvm-mingw

[20240130 with LLVM 18.1.0 RC 1] Unable to link

Closed this issue · 9 comments

I don't know (both POSIX and normal doing)

Screenshot_20240203_223313_Termux

Are you trying to compile any MSVC speicific projects? Those libraries are present in msvc directory C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC

no it's a MinGW specific project (as hxcpp has mingw-toolchain.xml) but I have UCRT ubuntu 20.04 aarch64 clang mingw and I don't have pc... so I don't really know if .lib and .a is same

Could you provide any procedure to reproduce the issue?

libcmt and oldnames in this form, is a sign that you're trying to link object files or static libraries that were built with MSVC (or clang with an MSVC environment). Mingw environments don't support linking MSVC object files or static libraries. If this has happened to work before, it has only been by accident - this is not a supported usecase.

no I'm first time compiling this I may needed check linker flags that I'll do later (I'm a busy girl at school)

Can you give us a reproduction? Basically what you have done up to this point

I downloaded llvm-mingw and used MINGW_ROOT=(llvm-mingw root) lime build windows -64 normally gcc mingw (debian mingw-w64) works fine but llvm-mingw keeps giving that

as I said I needed check linker flags

yeah it was due linker flags sorry for wasting you all's time...