Monday, 2 September 2013

Nodejs as static library Link errors

Nodejs as static library Link errors

pI compiled nodejs as static library. I also added an exe project in
nodejs solution and used that library in that and it worked./p pI then
tried to use nodejs library with libcef. In the libcef solution i gave
options of/p precodeAdd additional library directory: #
C:\blah\chromium\chromium\src\node\node\$(Configuration)\lib Add
additional library: # node.lib Add additoinal include dir: #
C:\blah\chromium\chromium\src\node\node\src /code/pre pThen i tried to
build libcef and it is giving linker errors like:/p precode245gt; Creating
library ..\build\Debug\lib\libcef.lib and object
..\build\Debug\lib\libcef.exp 245gt;node.lib(node_crypto.obj) : error
LNK2019: unresolved external symbol _ERR_error_string_n referenced in
function class v8::Handlelt;class v8::Valuegt; __cdecl
node::crypto::ThrowCryptoErrorHelper(unsigned long,bool)
(?ThrowCryptoErrorHelper@crypto@node@@YA?AV?$Handle@VValue@v8@@@v8@@K_N@Z)
245gt;node.lib(node_crypto.obj) : error LNK2019: unresolved external
symbol _SSL_CTX_free referenced in function class v8::Handlelt;class
v8::Valuegt; __cdecl node::crypto::GetSSLCiphers(class v8::Arguments const
amp;)
(?GetSSLCiphers@crypto@node@@YA?AV?$Handle@VValue@v8@@@v8@@ABVArguments@4@@Z)
245gt;node.lib(node_crypto.obj) : error LNK2019: unresolved external
symbol _SSL_CTX_sess_set_new_cb referenced in function protected: static
class v8::Handlelt;class v8::Valuegt; __cdecl
node::crypto::SecureContext::Init(class v8::Arguments const amp;)
(?Init@SecureContext@crypto@node@@KA?AV?$Handle@VValue@v8@@@v8@@ABVArguments@5@@Z)
/code/pre pHow can i resolve them ?/p

No comments:

Post a Comment