-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Problems with win x64 build #44
Comments
Here's the patch: @@ -129,7 +129,11 @@ inline void Net_API uninitializeNetwork();
#if defined(POCO_OS_FAMILY_WINDOWS) && !defined(POCO_NET_NO_WINDOWS_INIT)
#if defined(POCO_STATIC)
extern "C" const struct NetworkInitializer pocoNetworkInitializer;
- #pragma comment(linker, "/include:_pocoNetworkInitializer")
+ #ifdef _WIN64
+ #pragma comment(linker, "/include:pocoNetworkInitializer")
+ #else
+ #pragma comment(linker, "/include:_pocoNetworkInitializer")
+ #endif
#endif // POCO_STATIC
#endif // POCO_NET_NO_WINDOWS_INIT |
Note that VS IDE does not recognize _WIN64 but compiler does, at least in 2010. So, although #ifdef _WIN64 portion will be grayed out it is actually compiled. (UPDATE: same for VS 2008) http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/3d75739b-6569-4496-8b45-0e0cf3b79b62 |
Network initialization fixed: |
Added JSON VS100 64 bit project files: |
Hi aleks-f! Can you put somewhere the files compiled? I'm not sure what files to change and it would be easier for me to put the files and keep a copy somewhere... Thank you in advice for this help! :-D |
PocoNetSSLmtd.lib(PrivateKeyPassphraseHandler.obj) : error LNK2001: unresolved external symbol _pocoNetworkInitializer
PocoNetmtd.lib(HTTPServerConnection.obj) : error LNK2001: unresolved external symbol _pocoNetworkInitializer
If I change the following it works:
Net.cpp
Line 101: const NetworkInitializer _pocoNetworkInitializer; // was pocoNetworkInitializer
Net.h
Line 131: extern "C" const struct NetworkInitializer _pocoNetworkInitializer; // was pocoNetworkInitializer
The text was updated successfully, but these errors were encountered: