{"id":1570,"date":"2022-08-30T15:17:38","date_gmt":"2022-08-30T15:17:38","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/27\/mac-xcode-build-error-undefined-symbols-for-architecture-i386-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:17:38","modified_gmt":"2022-08-30T15:17:38","slug":"mac-xcode-build-error-undefined-symbols-for-architecture-i386-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/mac-xcode-build-error-undefined-symbols-for-architecture-i386-collection-of-common-programming-errors\/","title":{"rendered":"Mac XCODE build error : Undefined symbols for architecture i386-Collection of common programming errors"},"content":{"rendered":"<p>Currently I am porting a Linux C++ project into Mac OS X 10.7 The problem I am facing now is below-<\/p>\n<pre><code>    Undefined symbols for architecture i386:\n  \"MsSipAgent::GetInstance()\", referenced from:\n      NetworkHandler::Start() in networkhandler.o\n  \"MsSipAgent::Initialize(std::string, std::string, std::string, std::string, int)\", referenced from:\n      NetworkHandler::RegisterSip() in networkhandler.o\nld: symbol(s) not found for architecture i386\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\n<\/code><\/pre>\n<p>Here MsSipAgent is a library that I give into &#8220;Link Binary with libraries&#8221;. Most of the functions of MsSipAgent is getting no error, except this two method (1)GetInstance() &amp; (2)Initialize(std::string, std::string, std::string, std::string, int). It also says that undefined symbols for architecture i386. But MsSipAgent library was build with setting MAC 32-bit.<\/p>\n<p>It will be highly appreciated if you can make me understand what is the reason behind it. If you need more info please kindly let me know.<\/p>\n<p>Thanks in advance.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-27 11:52:33. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Currently I am porting a Linux C++ project into Mac OS X 10.7 The problem I am facing now is below- Undefined symbols for architecture i386: &#8220;MsSipAgent::GetInstance()&#8221;, referenced from: NetworkHandler::Start() in networkhandler.o &#8220;MsSipAgent::Initialize(std::string, std::string, std::string, std::string, int)&#8221;, referenced from: NetworkHandler::RegisterSip() in networkhandler.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1570","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1570"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1570\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}