libplist icon indicating copy to clipboard operation
libplist copied to clipboard

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

Open mforys opened this issue 2 years ago • 2 comments

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

mforys avatar Dec 06 '23 11:12 mforys

same issue https://stackoverflow.com/questions/77444892/xcode-15-0-1-macos-sonoma-clang-archive-or-linking-issue

rybalkoss avatar Dec 06 '23 16:12 rybalkoss

I am still facing the same issue, can someone help me with the solution

dwarakeshc-kore avatar Aug 31 '24 17:08 dwarakeshc-kore