I am experiencing what seems to be the same problem when I try to compile two different programs. Each of them creates first a static library and then the main application linki
Using libtool -static -a might be simpler to get working static library.
libtool -static -a
Static library link issue with Mac OS X: symbol(s) not found for architecture x86_64