Shared library should export symbols on windows
This commit is contained in:
parent
9bb153cbf1
commit
fe6721af84
|
@ -1,3 +1,5 @@
|
||||||
|
#include "libc2.h"
|
||||||
|
|
||||||
float LibC2Func()
|
float LibC2Func()
|
||||||
{
|
{
|
||||||
return 1.0;
|
return 1.0;
|
||||||
|
|
|
@ -1 +1,11 @@
|
||||||
extern float LibC2Func();
|
#ifdef _WIN32
|
||||||
|
# ifdef c2_EXPORTS
|
||||||
|
# define CM_TEST_LIB_EXPORT __declspec( dllexport )
|
||||||
|
# else
|
||||||
|
# define CM_TEST_LIB_EXPORT __declspec( dllimport )
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define CM_TEST_LIB_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
CM_TEST_LIB_EXPORT float LibC2Func();
|
||||||
|
|
Loading…
Reference in New Issue