Does anyone know if the extensive use of c-macros to define and declare functions when building a static library affects the linker's ability to export those symbols?
I have consistently run into this issue and almost always most of the symbol lookup failures went away when I switched to regular function declaration and definition (no usage of macros).
This happens on the mac platform using Xcode 5 and targeting iOS (arm + i386).
It did not matter which build settings i turned on/off. What seems to make a real difference is the usage of macros and the use of a symbol export file.
I ask because I am now up against a big, big chunk of code that uses several levels of macros for function definitions and declarations and I don't want to change that unless I absolutely have to.
The code is really complex (but compelling :) ) and was originally built using GNU make & siblings. So, switching it to XCode-based builds is no walk in the park. It plays tricks with header includes.
I would appreciate some education with respect to this point: macros & symbol exports for static libraries.
Thanks!