Link error in Visual Studio 2015 using win10 build target

asked 2016-01-23 20:46:15 -0700

koapeadu gravatar image

I checked out the 15.09 tag and built the AllJoyn SDK using scons OS=win10 CPU=x86_64 MSVC_VERSION=14.0 BINDINGS=cpp VARIANT=release

The build was successful and the samples run correctly. I built a debug version too and it worked fine.

However the sample project in core\alljoyn\alljoyn_core\samples\windows\Client and another project I created in Visual Studio 2015(and added Additional libraries like so $(ALLJOYN_SDK_HOME)\inc, etc as shown on the Building on Windows page) failed to link with these errors.

1>alljoyn.lib(NamedPipeWrapper.obj) : error LNK2001: unresolved external symbol AllJoynConnectToBus 1>alljoyn.lib(NamedPipeWrapper.obj) : error LNK2001: unresolved external symbol AllJoynCloseBusHandle 1>alljoyn.lib(NamedPipeWrapper.obj) : error LNK2001: unresolved external symbol AllJoynSendToBus 1>alljoyn.lib(NamedPipeWrapper.obj) : error LNK2001: unresolved external symbol AllJoynReceiveFromBus 1>alljoyn.lib(NamedPipeWrapper.obj) : error LNK2001: unresolved external symbol AllJoynEventSelect 1>alljoyn.lib(NamedPipeWrapper.obj) : error LNK2001: unresolved external symbol AllJoynEnumEvents 1>alljoyn.lib(NamedPipeWrapper.obj) : error LNK2001: unresolved external symbol AllJoynCreateBus 1>alljoyn.lib(NamedPipeWrapper.obj) : error LNK2001: unresolved external symbol AllJoynAcceptBusConnection 1>C:\Users\User\Documents\Visual Studio 2015\Projects\TrialAllJoyn\x64\Release\TrialAllJoyn.exe : fatal error LNK1120: 8 unresolved externals

edit retag flag offensive close merge delete