In my application I'm using a static library named ABC.a in that library in a c file named Layout.c there is a function called init(). And I linked the library to the projects and added the .h file. The program is compiled without error but while linking the function its throwing the error. Why?
Info: I've added that static library in build phases also.
And the library is built for armv7, armv7s and arm64. bitcode enabled: No and Build active architectures : NO
Example error:
Undefined symbols for architecture arm64: "AMID_INIT(int*, int*, int)", referenced from: -[ViewController microphone:hasAudioReceived:withBufferSize:withNumberOfChannels:] in Test_lto.o "amid_Val(float const*, int, int*, int, unsigned int)", referenced from: -[ViewController microphone:hasAudioReceived:withBufferSize:withNumberOfChannels:] in Test_lto.o Please help two days gone for this.
#import 'lib.h'in anextern "C" {\n#import 'lib.h'\n}to see if that helps things.