Skip to content

a problem when using a LDC2 #110

@ZHANITEST

Description

@ZHANITEST

howdy 😄
i think a LuaD is not actived. but i just open it.

when i build with LDC2, i got a problem about linker.
here:

> ldc2 --version
LDC - the LLVM D compiler (1.10.0):
  based on DMD v2.080.1 and LLVM 6.0.0
  built with LDC - the LLVM D compiler (1.10.0)
  Default target: x86_64-pc-windows-msvc
  Host CPU: znver1
> dub run
Fetching luad ~master (getting selected version)...
Performing "debug" build using C:\D\ldc2\bin\ldc2.exe for x86_64.
luad ~master: building configuration "library"...
miniapp ~master: building configuration "application"...
luad.lib(luad.state.obj) : error LNK2019: (blaha blaha blaha native sentense)
luad.lib(luad.state.obj) : error LNK2019: (blaha blaha blaha native sentense)
luad.lib(luad.c.lua.obj) : error LNK2001: (blaha blaha blaha native sentense)
luad.lib(luad.c.tostring.obj) : error LNK2001: (blaha blaha blaha native sentense)
luad.lib(luad.state.obj) : error LNK2019: (blaha blaha blaha native sentense)
...
.dub\build\application-debug-windows-x86_64-ldc_2080-A018B6E6B6632669C02A6EFF51E3E42A\miniapp.exe : fatal error LNK1120: (blaha blaha blaha native sentense)
Error: C:\Program Files (x86)\Microsoft Visual Studio\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\link.exe failed with status: 1120
C:\D\ldc2\bin\ldc2.exe failed with exit code 1.

but dmd's working pretty(DMD32 D Compiler v2.081.1). can't solve them?

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions