title: linking to a .dylib in vs code
body: <p>I'm trying to link my .dylib file when compiling in my sandbox folder but getting an <em>unknown / unsupported file</em> warning from the compiler followed by Undefined symbol in my class. The library appears to be correct with just a wrapped printf and shows as:
  <code>Mach-O 64-bit dynamically linked shared library x86_64</code></p>
  <p>Any help with building and linking this?  Thank you.</p>
  <pre><code>{
      &quot;version&quot;: &quot;2.0.0&quot;,
      &quot;tasks&quot;: [
          { 
  
          { 
              &quot;label&quot;: &quot;build&quot;,
              &quot;type&quot;: &quot;shell&quot;,
              &quot;command&quot;: &quot;g++ --verbose  -m64 -dynamiclib -fPIC -o ${workspaceFolder:Engine}/bin/libfoo.dylib ${workspaceFolder:Engine}/src/test.cpp&quot;
          },
  
  
              &quot;label&quot;: &quot;build&quot;,
              &quot;type&quot;: &quot;shell&quot;,
              &quot;command&quot;: &quot;g++&quot;,
              &quot;args&quot;: [ 
                  &quot;--verbose&quot;,
                  &quot;${workspaceFolder:Sandbox}/src/testinglib.cpp&quot;,
                  &quot;${file}&quot;,
                  &quot;-I&quot;, 
                   &quot;${workspaceFolder:Engine}/src&quot;,
                  &quot;-L&quot;, 
                  &quot;${workspaceFolder:Engine}/bin&quot;,
                   &quot;-o&quot;,
                  &quot;${workspaceFolder:Sandbox}/bin/testinglib&quot;,      
                   ]
          }
      ]
  }
  </code></pre>
  <pre><code>ld: warning: ignoring file /Development/Engine/.vscode/tasks.json, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x7B 0x0A 0x20 0x20 0x20 0x20 0x2F 0x2F 0x20 0x53 0x65 0x65 0x20 0x68 0x74 0x74 )
  Undefined symbols for architecture x86_64:
    &quot;Engine::Print()&quot;, referenced from:
        _main in libtesting-77a284.o
  ld: symbol(s) not found for architecture x86_64
  </code></pre>