mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 19:25:53 +02:00
LINKER error trying to use POCO NET #2168
This commit is contained in:

committed by
GitHub

parent
27147dccdb
commit
11dc0e50a6
@@ -93,13 +93,13 @@ void Net_API uninitializeNetwork();
|
|||||||
extern "C" const struct Net_API NetworkInitializer pocoNetworkInitializer;
|
extern "C" const struct Net_API NetworkInitializer pocoNetworkInitializer;
|
||||||
|
|
||||||
#if defined(Net_EXPORTS)
|
#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))
|
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/export:"#s))
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/export:_"#s))
|
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/export:_"#s))
|
||||||
#endif
|
#endif
|
||||||
#else // !Net_EXPORTS
|
#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))
|
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/include:"#s))
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/include:_"#s))
|
#define POCO_NET_FORCE_SYMBOL(s) __pragma(comment (linker, "/include:_"#s))
|
||||||
|
Reference in New Issue
Block a user