P/S: Sorry, this is not a Mach-O linker error, it is a Undefined symbol error On Tue, Apr 23, 2013 at 6:04 PM, Khoa Pham <onmyway133 at gmail.com> wrote: > Hi, > > I followed the instructions here > http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone, and successfully > built static libraries. I lipo -info these libraries and make sure their > architecture is i386 > > After I added these libraries to ipjsua (I checked Library Search Path and > Link Binary With Libraries, and these are OK), I built and received error > > Undefined symbols for architecture i386: > > "_add_startup_config", referenced from: > > _main_func in pjsua_app.o > > "_destroy_cli", referenced from: > > _app_destroy in pjsua_app.o > > "_keepAliveFunction", referenced from: > > -[ipjsuaAppDelegate keepAlive] in ipjsuaAppDelegate.o > > "_load_config", referenced from: > > _app_init in pjsua_app.o > > "_setup_cli", referenced from: > > _app_init in pjsua_app.o > > "_start_cli_main", referenced from: > > _app_main in pjsua_app.o > > "_start_ui_main", referenced from: > > _app_main in pjsua_app.o > > "_stdout_refresh_text", referenced from: > > _stdout_refresh_proc in pjsua_app.o > > ld: symbol(s) not found for architecture i386 > > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > > > I then add pjsua_common.h and pjsua_common.c to ipjsua, but the errors are > still there > > > Please help > > > > -- > Khoa Pham > HCMC University of Science > Faculty of Information Technology > -- Khoa Pham HCMC University of Science Faculty of Information Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130423/760b2f14/attachment-0001.html>