Thank you sir. I will try that.

On Thursday, July 6, 2017 at 2:05:34 AM UTC-7, Vitaliy Bondarchuk wrote:
>
> for at least partially fix this issue you may add this line
>
> #pragma comment(lib,"Ws2_32.lib")
>
>
>
> четверг, 6 июля 2017 г., 3:00:39 UTC+3 пользователь Tom Wallick написал:
>>
>> I added to include dirs and additional include dirs in MSVC 2017 
>> calculator project  path to the capnp/ and kj/ dirs where the headers are
>> and the kj*.lib and capnp*.lib files as linker dependencies and I still 
>> cannot generate an exe for both the server and the client.
>>
>>
>> I just downloaded 0.6.1
>>
>> 2>calculator-server.obj : error LNK2001: unresolved external symbol 
>> "public: virtual class kj::Promise<void> __thiscall 
>> Calculator::Server::dispatchCall(unsigned __int64,unsigned short,class 
>> capnp::CallContext<struct capnp::AnyPointer,struct capnp::AnyPointer>)" 
>> (?dispatchCall@Server@Calculator@@UAE?AV?$Promise@X@kj@@_KGV?$CallContext@UAnyPointer@capnp@@U12@@capnp@@@Z)
>> 2>calculator-server.obj : error LNK2001: unresolved external symbol 
>> "protected: virtual class kj::Promise<void> __thiscall 
>> Calculator::Server::evaluate(class capnp::CallContext<struct 
>> Calculator::EvaluateParams,struct Calculator::EvaluateResults>)" 
>> (?evaluate@Server@Calculator@@MAE?AV?$Promise@X@kj@@V?$CallContext@UEvaluateParams@Calculator@@UEvaluateResults@2@@capnp@@@Z)
>> 2>calculator-server.obj : error LNK2001: unresolved external symbol 
>> "protected: virtual class kj::Promise<void> __thiscall 
>> Calculator::Server::defFunction(class capnp::CallContext<struct 
>> Calculator::DefFunctionParams,struct Calculator::DefFunctionResults>)" 
>> (?defFunction@Server@Calculator@@MAE?AV?$Promise@X@kj@@V?$CallContext@UDefFunctionParams@Calculator@@UDefFunctionResults@2@@capnp@@@Z)
>> 2>calculator-server.obj : error LNK2001: unresolved external symbol 
>> "protected: virtual class kj::Promise<void> __thiscall 
>> Calculator::Server::getOperator(class capnp::CallContext<struct 
>> Calculator::GetOperatorParams,struct Calculator::GetOperatorResults>)" 
>> (?getOperator@Server@Calculator@@MAE?AV?$Promise@X@kj@@V?$CallContext@UGetOperatorParams@Calculator@@UGetOperatorResults@2@@capnp@@@Z)
>> 2>calculator-server.obj : error LNK2019: unresolved external symbol 
>> "public: class capnp::Request<struct Calculator::Value::ReadParams,struct 
>> Calculator::Value::ReadResults> __thiscall 
>> Calculator::Value::Client::readRequest(class kj::Maybe<struct 
>> capnp::MessageSize>)" 
>> (?readRequest@Client@Value@Calculator@@QAE?AV?$Request@UReadParams@Value@Calculator@@UReadResults@23@@capnp@@V?$Maybe@UMessageSize@capnp@@@kj@@@Z)
>>  
>> referenced in function "class kj::Promise<double> __cdecl readValue(class 
>> Calculator::Value::Client)" 
>> (?readValue@@YA?AV?$Promise@N@kj@@VClient@Value@Calculator@@@Z)
>> 2>calculator-server.obj : error LNK2019: unresolved external symbol 
>> "public: virtual class kj::Promise<void> __thiscall 
>> Calculator::Value::Server::dispatchCall(unsigned __int64,unsigned 
>> short,class capnp::CallContext<struct capnp::AnyPointer,struct 
>> capnp::AnyPointer>)" 
>> (?dispatchCall@Server@Value@Calculator@@UAE?AV?$Promise@X@kj@@_KGV?$CallContext@UAnyPointer@capnp@@U12@@capnp@@@Z)
>>  
>> referenced in function "[thunk]:public: virtual class kj::Promise<void> 
>> __thiscall Calculator::Value::Server::dispatchCall`adjustor{8}' (unsigned 
>> __int64,unsigned short,class capnp::CallContext<struct 
>> capnp::AnyPointer,struct capnp::AnyPointer>)" 
>> (?dispatchCall@Server@Value@Calculator@@W7AE?AV?$Promise@X@kj@@_KGV?$CallContext@UAnyPointer@capnp@@U12@@capnp@@@Z)
>> 2>calculator-server.obj : error LNK2001: unresolved external symbol 
>> "protected: virtual class kj::Promise<void> __thiscall 
>> Calculator::Value::Server::read(class capnp::CallContext<struct 
>> Calculator::Value::ReadParams,struct Calculator::Value::ReadResults>)" 
>> (?read@Server@Value@Calculator@@MAE?AV?$Promise@X@kj@@V?$CallContext@UReadParams@Value@Calculator@@UReadResults@23@@capnp@@@Z)
>> 2>calculator-server.obj : error LNK2019: unresolved external symbol 
>> "public: class capnp::Request<struct 
>> Calculator::Function::CallParams,struct Calculator::Function::CallResults> 
>> __thiscall Calculator::Function::Client::callRequest(class kj::Maybe<struct 
>> capnp::MessageSize>)" 
>> (?callRequest@Client@Function@Calculator@@QAE?AV?$Request@UCallParams@Function@Calculator@@UCallResults@23@@capnp@@V?$Maybe@UMessageSize@capnp@@@kj@@@Z)
>>  
>> referenced in function "public: __thiscall 
>> <lambda_5f4f628c5712cf6fe2ecffa513914e75>::operator()(class 
>> kj::Array<double> &&)" 
>> (??R<lambda_5f4f628c5712cf6fe2ecffa513914e75>@@QAE@$$QAV?$Array@N@kj@@@Z)
>> 2>calculator-server.obj : error LNK2019: unresolved external symbol 
>> "public: virtual class kj::Promise<void> __thiscall 
>> Calculator::Function::Server::dispatchCall(unsigned __int64,unsigned 
>> short,class capnp::CallContext<struct capnp::AnyPointer,struct 
>> capnp::AnyPointer>)" 
>> (?dispatchCall@Server@Function@Calculator@@UAE?AV?$Promise@X@kj@@_KGV?$CallContext@UAnyPointer@capnp@@U12@@capnp@@@Z)
>>  
>> referenced in function "[thunk]:public: virtual class kj::Promise<void> 
>> __thiscall Calculator::Function::Server::dispatchCall`adjustor{4}' 
>> (unsigned __int64,unsigned short,class capnp::CallContext<struct 
>> capnp::AnyPointer,struct capnp::AnyPointer>)" 
>> (?dispatchCall@Server@Function@Calculator@@W3AE?AV?$Promise@X@kj@@_KGV?$CallContext@UAnyPointer@capnp@@U12@@capnp@@@Z)
>> 2>calculator-server.obj : error LNK2001: unresolved external symbol 
>> "protected: virtual class kj::Promise<void> __thiscall 
>> Calculator::Function::Server::call(class capnp::CallContext<struct 
>> Calculator::Function::CallParams,struct 
>> Calculator::Function::CallResults>)" 
>> (?call@Server@Function@Calculator@@MAE?AV?$Promise@X@kj@@V?$CallContext@UCallParams@Function@Calculator@@UCallResults@23@@capnp@@@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__accept@12 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__bind@12 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__closesocket@4 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__connect@12 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__getpeername@12 referenced in function "public: virtual void 
>> __thiscall kj::`anonymous namespace'::AsyncStreamFd::getpeername(struct 
>> sockaddr *,unsigned int *)" 
>> (?getpeername@AsyncStreamFd@?A0xd8c8e194@kj@@UAEXPAUsockaddr@@PAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__getsockname@12 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__getsockopt@20 referenced in function "public: virtual void 
>> __thiscall kj::`anonymous 
>> namespace'::AsyncStreamFd::getsockopt(int,int,void *,unsigned int *)" 
>> (?getsockopt@AsyncStreamFd@?A0xd8c8e194@kj@@UAEXHHPAXPAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__htonl@4 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__htons@4 referenced in function "public: __thiscall 
>> <lambda_6707afdadee2aba7337619d7d3bdd8ab>::operator()(struct kj::`anonymous 
>> namespace'::SocketAddress::LookupParams &&)const " 
>> (??R<lambda_6707afdadee2aba7337619d7d3bdd8ab>@@QBE@$$QAULookupParams@SocketAddress@?A0xd8c8e194@kj@@@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__listen@8 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__ntohs@4 referenced in function "public: unsigned int 
>> __thiscall kj::`anonymous namespace'::SocketAddress::getPort(void)const " 
>> (?getPort@SocketAddress@?A0xd8c8e194@kj@@QBEIXZ)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__send@16 referenced in function "public: __thiscall 
>> <lambda_6707afdadee2aba7337619d7d3bdd8ab>::operator()(struct kj::`anonymous 
>> namespace'::SocketAddress::LookupParams &&)const " 
>> (??R<lambda_6707afdadee2aba7337619d7d3bdd8ab>@@QBE@$$QAULookupParams@SocketAddress@?A0xd8c8e194@kj@@@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__setsockopt@20 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__shutdown@8 referenced in function "public: virtual void 
>> __thiscall kj::`anonymous namespace'::AsyncStreamFd::abortRead(void)" 
>> (?abortRead@AsyncStreamFd@?A0xd8c8e194@kj@@UAEXXZ)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__socket@12 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__WSAStartup@8 referenced in function "public: __thiscall 
>> kj::_::WinsockInitializer::WinsockInitializer(void)" 
>> (??0WinsockInitializer@_@kj@@QAE@XZ)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__WSASetLastError@4 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__WSAGetLastError@0 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__WSAIoctl@36 referenced in function "public: __thiscall 
>> kj::`anonymous namespace'::FdConnectionReceiver::FdConnectionReceiver(class 
>> kj::Win32EventPort &,unsigned int,unsigned int)" 
>> (??0FdConnectionReceiver@?A0xd8c8e194@kj@@QAE@AAVWin32EventPort@2@II@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__WSARecv@28 referenced in function "private: class 
>> kj::Promise<unsigned int> __thiscall kj::`anonymous 
>> namespace'::AsyncStreamFd::tryReadInternal(class kj::ArrayPtr<struct 
>> _WSABUF>,unsigned int,unsigned int)" 
>> (?tryReadInternal@AsyncStreamFd@?A0xd8c8e194@kj@@AAE?AV?$Promise@I@3@V?$ArrayPtr@U_WSABUF@@@3@II@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__WSASend@28 referenced in function "private: class 
>> kj::Promise<void> __thiscall kj::`anonymous 
>> namespace'::AsyncStreamFd::writeInternal(class kj::ArrayPtr<struct 
>> _WSABUF>)" 
>> (?writeInternal@AsyncStreamFd@?A0xd8c8e194@kj@@AAE?AV?$Promise@X@3@V?$ArrayPtr@U_WSABUF@@@3@@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__WSASocketA@24 referenced in function "int __cdecl 
>> kj::_::win32Socketpair(unsigned int * const)" 
>> (?win32Socketpair@_@kj@@YAHQAI@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__getaddrinfo@16 referenced in function "public: __thiscall 
>> <lambda_6707afdadee2aba7337619d7d3bdd8ab>::operator()(struct kj::`anonymous 
>> namespace'::SocketAddress::LookupParams &&)const " 
>> (??R<lambda_6707afdadee2aba7337619d7d3bdd8ab>@@QBE@$$QAULookupParams@SocketAddress@?A0xd8c8e194@kj@@@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__freeaddrinfo@4 referenced in function "public: void 
>> __thiscall <lambda_9bee209f9511f56834327a99780c9d97>::operator()(void)const 
>> " (??R<lambda_9bee209f9511f56834327a99780c9d97>@@QBEXXZ)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol __imp__inet_pton@12 referenced in function "public: static class 
>> kj::Promise<class kj::Array<class kj::`anonymous namespace'::SocketAddress> 
>> > __cdecl kj::`anonymous namespace'::SocketAddress::parse(class 
>> kj::LowLevelAsyncIoProvider &,class kj::StringPtr,unsigned int)" 
>> (?parse@SocketAddress@?A0xd8c8e194@kj@@SA?AV?$Promise@V?$Array@VSocketAddress@?A0xd8c8e194@kj@@@kj@@@3@AAVLowLevelAsyncIoProvider@3@VStringPtr@3@I@Z)
>> 2>kj-async.lib(async-io-win32.obj) : error LNK2019: unresolved external 
>> symbol _inet_ntop@16 referenced in function "public: class kj::String 
>> __thiscall kj::`anonymous namespace'::SocketAddress::toString(void)const " 
>> (?toString@SocketAddress@?A0xd8c8e194@kj@@QBE?AVString@3@XZ)
>> 2>C:\Users\golgo13\Projects\CapNProto\capnproto-master\c++\samples\Debug\calculator-server.exe
>>  
>> : fatal error LNK1120: 36 unresolved externals
>> 2>Done building project "calculator-server.vcxproj" -- FAILED.
>> ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
>>
>>
>> What is going on here ?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/capnproto.

Reply via email to