In V8 why does Isolate::GetCurrent() return NULL?
I have compiled V8 on Ubuntu and have a very simple V8 program called isolate_test.cc. It is based on the Hello World example from Google : #include <v8.h> using namespace v8; int main(int argc, char* argv[]) { V8::initialize(); Isolate* isolate = Isolate::GetCurrent(); //Always returns NULL return 0; } The command I use to compile this program is: g++ -Iinclude -g isolate_test.cc -o isolate_test -Wl,--start-group out/x64.debug/obj.target/{tools/gyp/libv8_{base,snapshot},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group -lrt -lpthread Problem is Isolate::GetCurrent() always returns NULL