встраивание v8 в приложение C ++ в Visual Studio 2012

Я только что закончил сборку V8 на Windows 8 с Visual Studio 2012, и теперь я хотел бы статически связать его с приложением

за исключением того, что я понятия не имею, куда идти отсюда, я получил некоторый код от Google, который я хотел бы попробовать и скомпилировать, хотя

#include <v8.h>

using namespace v8;

int main(int argc, char* argv[]) {
// Get the default Isolate created at startup.
Isolate* isolate = Isolate::GetCurrent();

// Create a stack-allocated handle scope.
HandleScope handle_scope(isolate);

// Create a new context.
Handle<Context> context = Context::New(isolate);

// Here's how you could create a Persistent handle to the context, if needed.
Persistent<Context> persistent_context(isolate, context);

// Enter the created context for compiling and
// running the hello world script.
Context::Scope context_scope(context);

// Create a string containing the JavaScript source code.
Handle<String> source = String::New("'Hello' + ', World!'");

// Compile the source code.
Handle<Script> script = Script::Compile(source);

// Run the script to get the result.
Handle<Value> result = script->Run();

// The persistent handle needs to be eventually disposed.
persistent_context.Dispose();

// Convert the result to an ASCII string and print it.
String::AsciiValue ascii(result);
printf("%s\n", *ascii);
return 0;
}

Я знаю, что это просто приведет к ошибке компиляции, если я попытаюсь включить заголовок v8, делая что-то еще, и это то, что я хочу знать,

Я прошу прощения за отсутствие предоставленной информации, чтобы быть честным, я не совсем уверен, что нужно, чтобы помочь решить мою проблему, поэтому любые комментарии по этому поводу также приветствуются

1

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector