title: V8 compile error for basic example
body: <p>I am trying to compile the hello world example for V8, and I keep running into a compile time error. Here is the code:</p>
  
  <pre><code>#include &lt;v8/src/v8.h&gt;
  
  using namespace v8;
  
  int main(int argc, char* argv[]) {
  
    // Create a string holding the JavaScript source code.
    String source = String::New("Hi");
  
    // Compile it.
    Script script = Script::Compile(source) ;
  
    // Run it.
    Value result = script-&gt;Run();
  
    // Convert the result to an ASCII string and display it.
    String::AsciiValue ascii(result) ;
    printf("%s\n", *ascii) ;
    return 0;
  }
  </code></pre>
  
  <p>This is the compile error:</p>
  
  <pre><code>error: conversion from ‘v8::Local&lt;v8::String&gt;’ to non-scalar type ‘v8::String’ requested
  </code></pre>
  
  <p>The error is for line 8 where it says: String source = String::New("Hi");</p>
  
  <p>I have tried google'ing this error senseless, and cannot seem to find a fix for it that makes sense. Any ideas?</p>
  
  <p>I have tried both:</p>
  
  <p>svn checkout <a href="http://v8.googlecode.com/svn/trunk/" rel="nofollow">http://v8.googlecode.com/svn/trunk/</a> v8</p>
  
  <p>and</p>
  
  <p>svn checkout <a href="http://v8.googlecode.com/svn/branches/bleeding_edge/" rel="nofollow">http://v8.googlecode.com/svn/branches/bleeding_edge/</a> v8</p>
  
  <p>and get the same error for both.</p>