9 #include "OSGSimpleCSMPluginInterface.h"
12 void doit(int argc
, char **argv
)
15 LoadLibrary("bin/ReleaseNoOpt/OSGContribCSMSimplePluginRN.dll");
19 OSG::CreateInterfaceF pInitF
=
20 reinterpret_cast<OSG::CreateInterfaceF
>(
21 GetProcAddress(pHandle
, "createInterface"));
25 OSG::SimpleCSMPluginInterface
*pIf
= (pInitF
)();
37 fprintf(stderr
, "could not get interface\n");
42 fprintf(stderr
, "could not get init func\n");
47 fprintf(stderr
, "Could not open plugin so\n");
51 void doit(int argc
, char **argv
)
53 void *pHandle
= dlopen("bin/libOSGContribCSMSimplePlugin.so",
54 (RTLD_LAZY
| RTLD_GLOBAL
));
58 OSG::CreateInterfaceF pInitF
=
59 reinterpret_cast<OSG::CreateInterfaceF
>(
60 dlsym(pHandle
, "createInterface"));
64 OSG::SimpleCSMPluginInterface
*pIf
= (pInitF
)();
76 fprintf(stderr
, "could not get interface\n");
81 fprintf(stderr
, "could not get init func\n");
86 fprintf(stderr
, "Could not open plugin so\n");
91 int main(int argc
, char **argv
)
93 for(int i
= 0; i
< 5; ++i
)