title: undefined reference when linking V8
body: <p>I'm strugling to compile a really small example with V8..</p>
  
  <p>cpp program is this: </p>
  
  <pre><code>#include "v8.h"
  
  int main()
  {
       v8::HandleScope handle_scope;
  
       return 0;
  }
  </code></pre>
  
  <p>Compile line: g++ -I/home/lterje/git/tengine/Externals/v8/include /home/lterje/git/tengine/Externals/v8/out/ia32.release/obj.target/tools/gyp/libv8_snapshot.a test.cpp -o test -lpthread</p>
  
  <p>Error I'm getting:</p>
  
  <pre><code>/tmp/ccHYtJuE.o: In function `main':
  test.cpp:(.text+0x11): undefined reference to `v8::HandleScope::HandleScope()'
  test.cpp:(.text+0x22): undefined reference to `v8::HandleScope::~HandleScope()'
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>What exactly is the difference between the base, snapshot and no snapshot library files? I've tried linking with each of them, but none of them works :/</p>