How can we find what symbols are being looked for by linker?

79 Views Asked by At

I'm getting a strange error, my libs have the definition of symbol it should be looking for, but still throws error "Unreferenced symbol for arm64 architecture"

now I tried lipo -info libQt5Core.a which gave me "Architectures in the fat file: libQt5Core.a are: x86_64 arm64" to make sure I have libs for correct architecture.

Is there any cmake command (probably enabling linker flag, I'm using clang toolchain for IOS) which gives out a list of symbols linker is trying to find in lib files?

what I'm asking for is essentially how to get a Map file (as mentioned in this Symbols in header files C/C++) generated via cmake for clang toolchain for IOS.

I'm not asking to see what symbols are available in my lib as I can see that info with nm libQt5Core.a

I've seen these ones before asking

  1. How to generate Map file using cmake
  2. Generate .map file with clang and lld
0

There are 0 best solutions below