I'm trying to implement V8 scripting. I get this: error C2039: 'Platform' : is not a member of 'node'
This line concerned is:
V8::InitializePlatform(new node::Platform(4));
In my Interface.cpp, taken from https://github.com/iojs/io.js/blob/v1.x/src/node.cc#L3638. If I add this line:
#include <node_v8_platform.h>
I get:
error LNK2019: unresolved external symbol "public: __thiscall node::Platform::Platform(unsigned int)" (??0Platform@node@@QAE@I@Z) referenced in function "public: void __thiscall Scribe::V8Interface::initialize(void)" (?initialize@V8Interface@Scribe@@QAEXXZ)
Any idea?
i have Windows 7 x64 but I'm compiling for x86. Since io.js was made an executable, I needed to follow these instructions https://github.com/iojs/io.js/issues/537#issuecomment-70824398
Note that directly using node::Start worked.
I linked libuv, and some things like that. There is a folder in build/Debug where there are the v8 libs, but the main ouput folder only contains a small iojs.lib which I linked (too small to contains whole v8) and a 15 Mb iojs.dll which I copied to the folder where there is my exe