Skip to content

Linker error: ld: archive member '/' not a mach-o file when trying to link libcnary.a #246

@mforys

Description

@mforys

May anyone explain me how to fix this linker error?
ld: archive member '/' not a mach-o file in '/Users/marek/_repos/libplist/libcnary/.libs/libcnary.a'

I'm trying to compile libplist on MacOS with x64 architecture.

  CXX      String.lo
  CXX      Uid.lo
  CXXLD    libplist++-2.0.la
Making all in include
make[2]: Nothing to be done for `all'.
Making all in tools
  CC       plistutil.o
  CCLD     plistutil
Making all in docs
make[2]: Nothing to be done for `all'.
Making all in test
  CC       plist_cmp.o
  CCLD     plist_cmp
ld: archive member '/' not a mach-o file in '/Users/marek/_repos/libplist/libcnary/.libs/libcnary.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [plist_cmp] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

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