Follow the steps below to run the example yourself:
Download the V8 source code and build V8 by following the download and build instructions.
This hello world example is compatible with the version 4.8. You can check out this branch with git checkout -b 4.8 -t branch-heads/4.8.
Build via make x64.release on a Linux x64 system to generate the correct binaries.
Copy the complete code from the previous section (the second code snippet), paste it into your favorite text editor, and save as hello_world.cpp in the V8 directory that was created during your V8 build.
Compile hello_world.cpp, linking to the static libraries created in the build process. For example, on 64bit Linux using the GNU compiler: