g++ -I. -Iinclude samples/hello-world.cc -o hello_world -Lout.gn/x64.release/obj/ -lrt -ldl -pthread -std=c++14 -DV8_COMPRESS_POINTERS
/tmp/ccIoFwWc.o: In function `main':
hello-world.cc:(.text+0x2c): undefined reference to `v8::V8::InitializeICUDefaultLocation(char const*, char const*)'
hello-world.cc:(.text+0x3e): undefined reference to `v8::V8::InitializeExternalStartupData(char const*)'
hello-world.cc:(.text+0x75): undefined reference to `v8::platform::NewDefaultPlatform(int, v8::platform::IdleTaskSupport, v8::platform::InProcessStackDumping, std::unique_ptr<v8::TracingController, std::default_delete<v8::TracingController> >)'
hello-world.cc:(.text+0x9b): undefined reference to `v8::V8::InitializePlatform(v8::Platform*)'
hello-world.cc:(.text+0xac): undefined reference to `v8::V8::Initialize(int)'
hello-world.cc:(.text+0xbb): undefined reference to `v8::Isolate::CreateParams::CreateParams()'
hello-world.cc:(.text+0xc0): undefined reference to `v8::ArrayBuffer::Allocator::NewDefaultAllocator()'
hello-world.cc:(.text+0xd6): undefined reference to `v8::Isolate::New(v8::Isolate::CreateParams const&)'
hello-world.cc:(.text+0x106): undefined reference to `v8::HandleScope::HandleScope(v8::Isolate*)'
hello-world.cc:(.text+0x16e): undefined reference to `v8::Context::New(v8::Isolate*, v8::ExtensionConfiguration*, v8::MaybeLocal<v8::ObjectTemplate>, v8::MaybeLocal<v8::Value>, v8::DeserializeInternalFieldsCallback, v8::MicrotaskQueue*)'
hello-world.cc:(.text+0x1af): undefined reference to `v8::Context::Enter()'
hello-world.cc:(.text+0x1ea): undefined reference to `v8::Script::Compile(v8::Local<v8::Context>, v8::Local<v8::String>, v8::ScriptOrigin*)'
hello-world.cc:(.text+0x20b): undefined reference to `v8::V8::ToLocalEmpty()'
hello-world.cc:(.text+0x248): undefined reference to `v8::Script::Run(v8::Local<v8::Context>)'
hello-world.cc:(.text+0x269): undefined reference to `v8::V8::ToLocalEmpty()'
hello-world.cc:(.text+0x2aa): undefined reference to `v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
hello-world.cc:(.text+0x2d0): undefined reference to `v8::String::Utf8Value::~Utf8Value()'
hello-world.cc:(.text+0x357): undefined reference to `v8::Script::Compile(v8::Local<v8::Context>, v8::Local<v8::String>, v8::ScriptOrigin*)'
hello-world.cc:(.text+0x378): undefined reference to `v8::V8::ToLocalEmpty()'
hello-world.cc:(.text+0x3af): undefined reference to `v8::Script::Run(v8::Local<v8::Context>)'
hello-world.cc:(.text+0x3d0): undefined reference to `v8::V8::ToLocalEmpty()'
hello-world.cc:(.text+0x407): undefined reference to `v8::Value::Uint32Value(v8::Local<v8::Context>) const'
hello-world.cc:(.text+0x43d): undefined reference to `v8::V8::FromJustIsNothing()'
hello-world.cc:(.text+0x475): undefined reference to `v8::Context::Exit()'
hello-world.cc:(.text+0x484): undefined reference to `v8::HandleScope::~HandleScope()'
hello-world.cc:(.text+0x49f): undefined reference to `v8::Isolate::Dispose()'
hello-world.cc:(.text+0x4a4): undefined reference to `v8::V8::Dispose()'
hello-world.cc:(.text+0x4a9): undefined reference to `v8::V8::ShutdownPlatform()'
hello-world.cc:(.text+0x4e6): undefined reference to `v8::Isolate::CreateParams::~CreateParams()'
hello-world.cc:(.text+0x52b): undefined reference to `v8::String::Utf8Value::~Utf8Value()'
hello-world.cc:(.text+0x54a): undefined reference to `v8::Context::Exit()'
hello-world.cc:(.text+0x55e): undefined reference to `v8::HandleScope::~HandleScope()'
hello-world.cc:(.text+0x586): undefined reference to `v8::Isolate::CreateParams::~CreateParams()'
/tmp/ccIoFwWc.o: In function `v8::Isolate::Scope::Scope(v8::Isolate*)':
hello-world.cc:(.text._ZN2v87Isolate5ScopeC2EPS0_[_ZN2v87Isolate5ScopeC5EPS0_]+0x23): undefined reference to `v8::Isolate::Enter()'
/tmp/ccIoFwWc.o: In function `v8::Isolate::Scope::~Scope()':
hello-world.cc:(.text._ZN2v87Isolate5ScopeD2Ev[_ZN2v87Isolate5ScopeD5Ev]+0x17): undefined reference to `v8::Isolate::Exit()'
/tmp/ccIoFwWc.o: In function `v8::Local<v8::String> v8::String::NewFromUtf8Literal<21>(v8::Isolate*, char const (&) [21], v8::NewStringType)':
hello-world.cc:(.text._ZN2v86String18NewFromUtf8LiteralILi21EEENS_5LocalIS0_EEPNS_7IsolateERAT__KcNS_13NewStringTypeE[_ZN2v86String18NewFromUtf8LiteralILi21EEENS_5LocalIS0_EEPNS_7IsolateERAT__KcNS_13NewStringTypeE]+0x27): undefined reference to `v8::String::NewFromUtf8Literal(v8::Isolate*, char const*, v8::NewStringType, int)'
/tmp/ccIoFwWc.o: In function `v8::Local<v8::String> v8::String::NewFromUtf8Literal<487>(v8::Isolate*, char const (&) [487], v8::NewStringType)':
hello-world.cc:(.text._ZN2v86String18NewFromUtf8LiteralILi487EEENS_5LocalIS0_EEPNS_7IsolateERAT__KcNS_13NewStringTypeE[_ZN2v86String18NewFromUtf8LiteralILi487EEENS_5LocalIS0_EEPNS_7IsolateERAT__KcNS_13NewStringTypeE]+0x27): undefined reference to `v8::String::NewFromUtf8Literal(v8::Isolate*, char const*, v8::NewStringType, int)'
collect2: error: ld returned 1 exit status
Thanks.