Problem while reinstalling VS2012

May 5, 2015 at 10:21 AM
I developed an application using Casablanca SDK. It was working fine. Today something happened to my visual studio and I had to reinstall it, After reinstalling, I rain casablanca MSI installer, where it gave me option to remove and repair. So I selected repair.

After repair, I ran netGUI and upgraded all components of Casablanca SDK to latest version (March 2015).

But now when I compile, I am facing this error.
This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\cpprestsdk.2.4.0.1\build\native\cpprestsdk.targets.
Coordinator
May 5, 2015 at 7:31 PM
Hi maverick786us,

I recommend you ignore the version of the C++ REST SDK which comes with Visual Studio 2013. It is quite old now and the library now exclusively is delivered on CodePlex and through our NuGet package.

I'm not familiar with what netGUI is. The error is correct and indicating you that you need to download the NuGet package. Open your solution in Visual Studio and build and it should automatically download the package for you.

Steve
May 6, 2015 at 4:19 AM
Edited May 6, 2015 at 4:23 AM
stevetgates wrote:
Hi maverick786us,

I recommend you ignore the version of the C++ REST SDK which comes with Visual Studio 2013. It is quite old now and the library now exclusively is delivered on CodePlex and through our NuGet package.

I'm not familiar with what netGUI is. The error is correct and indicating you that you need to download the NuGet package. Open your solution in Visual Studio and build and it should automatically download the package for you.

Steve
Sorry I mean NuGet not netGUI. I am using VIsual Studio 2012 (not 2013), I separately installed REST SDK and then upgraded it using NeGET package to latest. NuGet is already installed and configured with Visual Studio 2012.
May 6, 2015 at 12:44 PM
Anyways I created a new project.

Added the source code and used NuGet updated to latest version of Casablanca where it added all the header files, library and other files within the newly created package folder of the project. But now I am coming across this error.

Steve, can you help me in resolving these issues?
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) long __cdecl pplx::details::platform::GetCurrentThreadId(void)" (__imp_?GetCurrentThreadId@platform@details@pplx@@YAJXZ) referenced in function "public: void __thiscall pplx::details::_CancellationTokenState::_DeregisterCallback(class pplx::details::_CancellationTokenRegistration *)" (?_DeregisterCallback@_CancellationTokenState@details@pplx@@QAEXPAV_CancellationTokenRegistration@23@@Z)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned int __cdecl pplx::details::platform::CaptureCallstack(void * *,unsigned int,unsigned int)" (__imp_?CaptureCallstack@platform@details@pplx@@YAIPAPAXII@Z) referenced in function "public: static class pplx::details::_TaskCreationCallstack __cdecl pplx::details::_TaskCreationCallstack::_CaptureMultiFramesCallstack(unsigned int)" (?_CaptureMultiFramesCallstack@_TaskCreationCallstack@details@pplx@@SA?AV123@I@Z)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall pplx::details::event_impl::event_impl(void)" (__imp_??0event_impl@details@pplx@@QAE@XZ) referenced in function "public: __thiscall pplx::details::_TaskCollectionImpl::_TaskCollectionImpl(struct pplx::scheduler_ptr)" (??0_TaskCollectionImpl@details@pplx@@QAE@Uscheduler_ptr@2@@Z)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall pplx::details::event_impl::~event_impl(void)" (__imp_??1event_impl@details@pplx@@QAE@XZ) referenced in function "public: __thiscall pplx::details::_TaskCollectionImpl::~_TaskCollectionImpl(void)" (??1_TaskCollectionImpl@details@pplx@@QAE@XZ)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall pplx::details::event_impl::set(void)" (__imp_?set@event_impl@details@pplx@@QAEXXZ) referenced in function "public: void __thiscall pplx::details::_CancellationTokenState::_Cancel(void)" (?_Cancel@_CancellationTokenState@details@pplx@@QAEXXZ)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall pplx::details::event_impl::wait(unsigned int)" (__imp_?wait@event_impl@details@pplx@@QAEII@Z) referenced in function "public: void __thiscall pplx::details::_CancellationTokenState::_DeregisterCallback(class pplx::details::_CancellationTokenRegistration *)" (?_DeregisterCallback@_CancellationTokenState@details@pplx@@QAEXPAV_CancellationTokenRegistration@23@@Z)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall pplx::details::critical_section_impl::critical_section_impl(void)" (__imp_??0critical_section_impl@details@pplx@@QAE@XZ) referenced in function "public: __thiscall pplx::details::_Task_completion_event_impl<unsigned char>::_Task_completion_event_impl<unsigned char>(void)" (??0?$_Task_completion_event_impl@E@details@pplx@@QAE@XZ)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall pplx::details::critical_section_impl::~critical_section_impl(void)" (__imp_??1critical_section_impl@details@pplx@@QAE@XZ) referenced in function __unwindfunclet$??0_Task_impl_base@details@pplx@@QAE@PAV_CancellationTokenState@12@Uscheduler_ptr@2@@Z$2
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall pplx::details::critical_section_impl::lock(void)" (__imp_?lock@critical_section_impl@details@pplx@@QAEXXZ) referenced in function "public: __thiscall pplx::scoped_lock<class pplx::details::critical_section_impl>::scoped_lock<class pplx::details::critical_section_impl>(class pplx::details::critical_section_impl &)" (??0?$scoped_lock@Vcritical_section_impl@details@pplx@@@pplx@@QAE@AAVcritical_section_impl@details@1@@Z)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall pplx::details::critical_section_impl::unlock(void)" (__imp_?unlock@critical_section_impl@details@pplx@@QAEXXZ) referenced in function "public: __thiscall pplx::scoped_lock<class pplx::details::critical_section_impl>::~scoped_lock<class pplx::details::critical_section_impl>(void)" (??1?$scoped_lock@Vcritical_section_impl@details@pplx@@@pplx@@QAE@XZ)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class std::shared_ptr<struct pplx::scheduler_interface> __cdecl pplx::get_ambient_scheduler(void)" (__imp_?get_ambient_scheduler@pplx@@YA?AV?$shared_ptr@Uscheduler_interface@pplx@@@std@@XZ) referenced in function "public: __thiscall pplx::task_options::task_options(void)" (??0task_options@pplx@@QAE@XZ)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall web::http::details::http_msg_base::extract_utf8string(bool)" (__imp_?extract_utf8string@http_msg_base@details@http@web@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall <lambda_30ff70c21b3ef7fa23eae87b6e621c38>::operator()(unsigned __int64)const " (??R<lambda_30ff70c21b3ef7fa23eae87b6e621c38>@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_K@Z)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __thiscall web::http::details::http_msg_base::extract_utf16string(bool)" (__imp_?extract_utf16string@http_msg_base@details@http@web@@QAE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@_N@Z) referenced in function "public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __thiscall <lambda_2437c153bab50e88f153a5a888053e53>::operator()(unsigned __int64)const " (??R<lambda_2437c153bab50e88f153a5a888053e53>@@QBE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@_K@Z)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __thiscall web::http::details::http_msg_base::extract_string(bool)" (__imp_?extract_string@http_msg_base@details@http@web@@QAE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@_N@Z) referenced in function "public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __thiscall <lambda_75c696dc626e30fae3baa54721909c80>::operator()(unsigned __int64)const " (??R<lambda_75c696dc626e30fae3baa54721909c80>@@QBE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@_K@Z)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class web::json::value __thiscall web::http::details::http_msg_base::_extract_json(bool)" (__imp_?_extract_json@http_msg_base@details@http@web@@QAE?AVvalue@json@4@_N@Z) referenced in function "public: class web::json::value __thiscall <lambda_40cc10e7b864a9db7074c33f64ca61eb>::operator()(unsigned __int64)const " (??R<lambda_40cc10e7b864a9db7074c33f64ca61eb>@@QBE?AVvalue@json@web@@_K@Z)
1>ListenerAgent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::vector<unsigned char,class std::allocator<unsigned char> > __thiscall web::http::details::http_msg_base::_extract_vector(void)" (__imp_?_extract_vector@http_msg_base@details@http@web@@QAE?AV?$vector@EV?$allocator@E@std@@@std@@XZ) referenced in function "public: class std::vector<unsigned char,class std::allocator<unsigned char> > __thiscall <lambda_7125f84b6cd367f4fe7fafe191ed3ec4>::operator()(unsigned __int64)const " (??R<lambda_7125f84b6cd367f4fe7fafe191ed3ec4>@@QBE?AV?$vector@EV?$allocator@E@std@@@std@@_K@Z)
1>D:\Maverick\Projects\StrikeForce\SRC\ListenerAgent\Debug\ListenerAgent.exe : fatal error LNK1120: 16 unresolved externals
Coordinator
May 6, 2015 at 4:35 PM
Hi maverick786us,

Ok I see the problem, you are using Visual Studio 2012. Starting with the 2.5.0 release our NuGet package doesn't contain binaries for Visual Studio 2012 anymore. We are phasing out support for Visual Studio 2012. If you want prebuilt binaries from our NuGet package you will have to use the 2.4.0 version. Another option is to build from source yourself. The Visual Studio 2012 project files are still in the repository for the 2.5.0 release, however are being removed in the 2.6.0 release. My recommendation is to upgrade to Visual Studio 2013.

Steve