Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win32 : LNK2001 #110

Closed
kinju opened this issue Feb 28, 2016 · 1 comment
Closed

Win32 : LNK2001 #110

kinju opened this issue Feb 28, 2016 · 1 comment

Comments

@kinju
Copy link

kinju commented Feb 28, 2016

Hi,

I just updated my pion version to the last develop branch version and I have theses following errors :

1>------ Build started: Project: WSApp, Configuration: Release Win32 ------
1>WSApp.obj : error LNK2001: unresolved external symbol "public: static unsigned int const pion::http::parser::DEFAULT_CONTENT_MAX" (?DEFAULT_CONTENT_MAX@parser@http@pion@@2ib)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::HEADER_CONNECTION" (?HEADER_CONNECTION@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static unsigned int const pion::http::types::RESPONSE_CODE_OK" (?RESPONSE_CODE_OK@types@http@pion@@2ib)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::HEADER_CONTENT_LENGTH" (?HEADER_CONTENT_LENGTH@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::STRING_HTTP_VERSION" (?STRING_HTTP_VERSION@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::REQUEST_METHOD_HEAD" (?REQUEST_METHOD_HEAD@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::RESPONSE_MESSAGE_OK" (?RESPONSE_MESSAGE_OK@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::STRING_EMPTY" (?STRING_EMPTY@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::HEADER_NAME_VALUE_DELIMITER" (?HEADER_NAME_VALUE_DELIMITER@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::HEADER_TRANSFER_ENCODING" (?HEADER_TRANSFER_ENCODING@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::STRING_CRLF" (?STRING_CRLF@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>AppService.lib(AppService.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > const pion::http::types::HEADER_SET_COOKIE" (?HEADER_SET_COOKIE@types@http@pion@@2v?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@b)
1>C:\dev\app\WSApp....\bin\WSApp.exe : fatal error LNK1120: 12 unresolved externals
========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========

I linked the WSApp executable and the AppService plugin with pion.lib in there corresponding configuration by I have theses link errors in Debug and Release.

What can I do ?

Thanks

@kinju
Copy link
Author

kinju commented Feb 28, 2016

Ok I got it, it was a missmatch between static and shared configurations ;)

@kinju kinju closed this as completed Feb 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant