Advertisement
Guest User

Unresolved External

a guest
Mar 1st, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4.  
  5. #include <v8pp/context.hpp>
  6. #include <libplatform/libplatform.h>
  7. #include <v8.h>
  8.  
  9. int main()
  10. {
  11.     v8::V8::InitializeExternalStartupData(__argv[0]);
  12.  
  13.     auto platform = v8::platform::NewDefaultPlatform();
  14.     v8::V8::InitializePlatform(platform.get());
  15.     v8::V8::Initialize();
  16.  
  17.     v8pp::context context;
  18.     v8::HandleScope handleScope(context.isolate());
  19.  
  20.     std::cout << "Hello World!\n";
  21.  
  22.     v8::V8::Dispose();
  23.     v8::V8::ShutdownPlatform();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement