Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mforys opened this issue Dec 6, 2023 · 1 comment

Comments

@mforys
Copy link

mforys commented Dec 6, 2023

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
@rybalkoss
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants