That's because "New" is indeed not part of the String API. I guess in your
case, you'd want v8::String::NewFromUTF8(v8::Isolate::GetCurrent(), "foo");

best
-jochen


On Wed, Jan 22, 2014 at 5:02 PM, Stefan Pöter <[email protected]>wrote:

> Hi,
>
> i downloaded the latest v8 from the github repository, set everything up
> like it is described in the getting started guide. Everything works so far.
> But when I add a simple v8::String::New("foo") in the hello_world.cpp then
> I get the following error:
>
> 'New' is not a member of 'v8::String'
>
> I build the v8 with the shared_library option and right now I am compiling
> the hello world application like so:
>
> g++ -Ideps/v8/include src/hello_world.cpp -o hello_world
> deps/v8/out/native/obj.target/tools/gyp/libv8.so
>
> Any ideas what I am doing wrong?
>
> Thanks
> Stefan
>
>  --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to