> [...] added the flags to ‘Other linker flags’ in Xcode [...] > (see screenshot attached)
You are unlikely to get useful help this way, unless someone else has had exactly your problem. I recommend that you do your compile and link from the command line so you can see what's really happening, and once you have it working there you then try it in a graphical integrated development environment. If you do a linux build I can definitely help you, since that's the platform I use (call me and we can share a screen to debug). If you do a command line build on a non-linux then I can try to help you, but it is less likely.