Skip to content

drepl linker error on loadLibrary #39

Description

@MartinNowak

Issue by carljv
Wednesday May 25, 2016 at 23:58 GMT
Originally opened as https://github.com/drepl/drepl-old/issues/2


I'm unable to get drepl to compile. I'm getting the following error:

Undefined symbols for architecture x86_64:
  "_rt_loadLibrary", referenced from:
      _D4core7runtime7Runtime17__T11loadLibraryZ11loadLibraryFxAaZPv in drepl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

That's with dmd. ldc thinks the problem is in engines.dmd.o (which does call loadLibrary).

Undefined symbols for architecture x86_64:
  "_rt_loadLibrary", referenced from:
      __D4core7runtime7Runtime17__T11loadLibraryZ11loadLibraryFxAaZPv in dawg.drepl.engines.dmd.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: /usr/bin/gcc failed with status: 1
ldc2 failed with exit code 1.

I'm on OS X 10.11.5 running:
dmd v2.071
ldc v0.17.0
clang/llvm v7.3.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions