llvm-d icon indicating copy to clipboard operation
llvm-d copied to clipboard

Compilation issues

Open jelenakomljenovic opened this issue 2 years ago • 3 comments

Hello, When I clone this code and compile it, I get the following error:

LINK : fatal error LNK1104: cannot open file 'LLVM.lib' Error: linker exited with status 1104 Error C:\D\dmd2\windows\bin64\dmd.exe failed with exit code 1.

I use ldc2, version: 1.33.0-beta1.

jelenakomljenovic avatar May 22 '23 10:05 jelenakomljenovic

You need the LLVM static library files which you can find here https://releases.llvm.org/download.html

LunaTheFoxgirl avatar May 22 '23 19:05 LunaTheFoxgirl

I have them. Do i need to put them somewhere in dub.json or?

On Mon, May 22, 2023, 9:26 PM Luna @.***> wrote:

You need the LLVM static library files which you can find here https://releases.llvm.org/download.html

— Reply to this email directly, view it on GitHub https://github.com/MoritzMaxeiner/llvm-d/issues/31#issuecomment-1557816776, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6GRMKNZDUEJ3RSVR45HSDXHO4V7ANCNFSM6AAAAAAYKHFYSA . You are receiving this because you authored the thread.Message ID: @.***>

jelenakomljenovic avatar May 22 '23 19:05 jelenakomljenovic

Either add the .lib as a source file in the dub file or put the .lib in to the sources directory

See: https://dub.pm/package-format-json.html#build-settings

LunaTheFoxgirl avatar May 23 '23 01:05 LunaTheFoxgirl