LINKER error trying to use POCO NET #2168

This commit is contained in:
Aleksandar Fabijanic
2018-08-13 11:47:17 -05:00
committed by GitHub
parent 27147dccdb
commit 11dc0e50a6

View File

@@ -93,13 +93,13 @@ void Net_API uninitializeNetwork();
extern "C" const struct Net_API NetworkInitializer pocoNetworkInitializer;
#if defined(Net_EXPORTS)
#if defined(_WIN64) || defined(_WIN32_WCE)
#if defined(_WIN64) || (defined(_WIN32_WCE) && !defined(x86))
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/export:"#s))
#elif defined(_WIN32)
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/export:_"#s))
#endif
#else // !Net_EXPORTS
#if defined(_WIN64) || defined(_WIN32_WCE)
#if defined(_WIN64) || (defined(_WIN32_WCE) && !defined(x86))
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/include:"#s))
#elif defined(_WIN32)
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/include:_"#s))