title: Linking error - Undefined symbols for architecture x86_64 on OSX
body: <p>The following is returned when trying to compile part of a project under OSX: </p>
  
  <pre><code>gcc -g -pipe -L/Projects/export buf_test.o buf.o -framework CoreFoundation -o buf_test
  Undefined symbols for architecture x86_64:
    "___assert_rtn", referenced from:
        _init in buf.o
        _get in buf.o
        _put in buf.o
    "___sprintf_chk", referenced from:
        _test in buf_test.o
    "___strcpy_chk", referenced from:
        _test_data_copy in buf_test.o
        ___inline_strcpy_chk in buf_test.o
    "_exit", referenced from:
        start in crt1.10.6.o
    "_printf", referenced from:
        _test in buf_test.o
    "_puts", referenced from:
        _test in buf_test.o
  ld: symbol(s) not found for architecture x86_64
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>Help would be much appreciated!</p>