简体   繁体   中英

Hello World example for V8 using gyp

Since SCons has been deprecated. I used the gyp to generate vs solution. I did what they told me on the build BuildingWithGYP . And the v8 project builded ok! and I got the v8_base.lib but no v8.lib.

And in the hello world project , get started .I add the lib directory into the add library. But it linked failed:

Linking...

1>v8test.obj : error LNK2019: unresolved external symbol "public: 
__thiscall v8::HandleScope::~HandleScope(void)" (?? 
1HandleScope@v8@@QAE@XZ) referenced in function _main 
1>v8test.obj : error LNK2019: unresolved external symbol "public: 
__thiscall v8::String::AsciiValue::~AsciiValue(void)" (?? 
1AsciiValue@String@v8@@QAE@XZ) referenced in function _main 
1>v8test.obj : error LNK2019: unresolved external symbol "public: 
__thiscall v8::String::AsciiValue::AsciiValue(class v8::Handle<class 
v8::Value>)" (??0AsciiValue@String@v8@@QAE@V?$Handle@VValue@v8@@@2@@Z) 
referenced in function _main 
1>v8test.obj : error LNK2019: unresolved external symbol "public: 
class v8::Local<class v8::Value> __thiscall v8::Script::Run(void)" (? 
Run@Script@v8@@QAE?AV?$Local@VValue@v8@@@2@XZ) referenced in function 
_main 
……

It seems that couldn't find the implement but i used the dumpbin tool and find the symbol i can find them in the v8_base.lib

I am sure that the library directory is ok! but i don't know why it couldn't find the implement.

您可以添加lib“v8_base.lib”作为解决问题的附加依赖项。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM