How Can I get older version?

May 4, 2015 at 4:33 PM
Edited May 4, 2015 at 4:34 PM
I am trying to build a project which build on cpprest 2.0.
If I build it with current 2.5, I got these messages:

2>Common.lib(REST.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const web::http::header_names::authorization" (?authorization@header_names@http@web@@2V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@B) 2>Common.lib(REST.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const web::http::methods::GET" (?GET@methods@http@web@@2V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@B) 2>Common.lib(REST.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const web::http::header_names::accept_encoding" (?accept_encoding@header_names@http@web@@2V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@B) 2>Common.lib(REST.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const web::http::methods::POST" (?POST@methods@http@web@@2V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@B) 2>Common.lib(REST.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const web::http::header_names::content_type" (?content_type@header_names@http@web@@2V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@B) 2>Win32\Release\driver.dll : fatal error LNK1120: 5 unresolved externals

I am not sure this about version problem, but I am trying to find older version of cpprest, I don't know how to do that.
There is no tagged branch on Git, NuGet don't have older version, no older version source code can download. So I have no idea how to resolve this problem.
Thanks.
May 4, 2015 at 4:45 PM
Hi bear330,

I don't quite understand the situation why you're getting these linker errors. But if you wanted to use an older version of the library you absolutely can, we have ever release tagged in the Git repository, as well as the NuGet packages at NuGet.org.

For example here are the tags:
PS C:\stgatesdev\Release> git tag
v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.3.1
v1.4.0
v2.0.0
v2.0.1
v2.1.0
v2.2.0
v2.3.0
v2.4.0
v2.5.0
And if you go the NuGet.org you can see all of our packages. For example this is the link to the 2.0.1 release.

Steve
May 4, 2015 at 4:56 PM
Edited May 4, 2015 at 4:59 PM
Oh! Thanks. I don't see any tag in codeplex's source code page (https://casablanca.codeplex.com/SourceControl/latest), on Github we can see tags on website, so I thought that is no tag exists.
Thanks for your help, I will try to use older version to build this project.
May 4, 2015 at 5:19 PM
Thank you, but I still got the same link error messages.
The project I am trying to build is Apache Kylin ODBC Driver (https://github.com/KylinOLAP/odbc-driver). I have post a open issue to it.
If you have any idea about this error I will very appreciate it.

Thanks.
May 5, 2015 at 3:10 AM
I found this is because the Apache Kylin ODBC Driver need link statically with cpprest. I follow the instructions in http://katyscode.wordpress.com/2014/04/01/how-to-statically-link-the-c-rest-sdk-casablanca/ then I can compile it now.

Thanks.