I have fixed it.

Modify to String::Utf8Value utf8_result(result);

Thanks.

On Tuesday, December 3, 2013 11:20:53 AM UTC+9, Steve Jonghee Yun wrote:
>
> How can I fix this error?
>
> *Code:*
>
> void Func1(Local<String>& source)
> {
> Local<Script> script = Script::Compile(source);
>
> Local<Value> result = script->Run();
>
> *Local<String::Utf8Value> utf8_result(result); // ERROR*
>
> std::cout << *utf8_result << "\n";
> }
>
> *Compile error:*
>
> In file included from hello.cpp:2:0:
> include/v8.h: In instantiation of ‘v8::Local<T>::Local(v8::Local<S>) [with 
> S = v8::Value; T = v8::String::Utf8Value]’:
> hello.cpp:31:45:   required from here
> include/v8.h:364:5: error: cannot convert ‘v8::Value*’ to 
> ‘v8::String::Utf8Value* volatile’ in assignment
>
>
>

-- 
-- 
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