title: Mac OS X Sierra : Undefined symbols for architecture x86_64
body: <p>I am trying to build a C source file based on Linphone in Mac OS X Sierra but getting the following error.</p>
  
  <p>This is the link for the C source file. 
  <a href="http://www.linphone.org/docs/liblinphone/group__basic__call__tutorials.html" rel="nofollow noreferrer">http://www.linphone.org/docs/liblinphone/group__basic__call__tutorials.html</a></p>
  
  <p>Edited:</p>
  
  <p>I am trying to compile the source code with this command</p>
  
  <blockquote>
    <p>clang -o tt tt.c -I/Users/softdev/Downloads/linphone-sdk-3.11.1-mac/include/ </p>
  </blockquote>
  
  <p>Error:</p>
  
  <blockquote>
    <blockquote>
      <p>Undefined symbols for architecture x86_64 <br/>
      ld: symbol(s) not found for architecture x86_64 <br/>
      clang: error: linker command failed with exit code 1 (use -v to see invocation)</p>
    </blockquote>
  </blockquote>
  
  <p>I have tried to change the target cpu but didn't work.</p>
  
  <p>My system has XCode 8. Any help regarding this will be appreciated.</p>
  
  <p>Edited: Complete Output</p>
  
  <pre>
  Undefined symbols for architecture x86_64:
    "_linphone_call_get_state", referenced from:
        _main in tt-ca2045.o
    "_linphone_call_ref", referenced from:
        _main in tt-ca2045.o
    "_linphone_call_unref", referenced from:
        _main in tt-ca2045.o
    "_linphone_core_destroy", referenced from:
        _main in tt-ca2045.o
    "_linphone_core_invite", referenced from:
        _main in tt-ca2045.o
    "_linphone_core_iterate", referenced from:
        _main in tt-ca2045.o
    "_linphone_core_new", referenced from:
        _main in tt-ca2045.o
    "_linphone_core_terminate_call", referenced from:
        _main in tt-ca2045.o
    "_ms_usleep", referenced from:
        _main in tt-ca2045.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </pre>