Latest V8 in shared library libv8.so.

108 views
Skip to first unread message

Jane Chen

unread,
Oct 2, 2015, 2:28:35 AM10/2/15
to v8-users
Trying to migrate to latest v8.

Looks like I need to initialize v8 with:

  v8::Platform* platform = v8::platform::CreateDefaultPlatform();
  v8::V8::InitializePlatform(platform);

but CreateDefaultPlatform is not in libv8.so. 

So how is it supposed to work?

Thanks in advance.

Ben Noordhuis

unread,
Oct 2, 2015, 4:40:07 AM10/2/15
to v8-u...@googlegroups.com
You need to link in libv8_libplatform.a as well. If you use gyp:

'dependencies': ['path/to/v8/tools/gyp/v8.gyp:v8_libplatform'],
'include_dirs': ['path/to/v8'], # for include/v8-platform.h
Reply all
Reply to author
Forward
0 new messages