diff options
Diffstat (limited to 'modules/example')
-rw-r--r-- | modules/example/Makefile | 2 | ||||
-rw-r--r-- | modules/example/main.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/modules/example/Makefile b/modules/example/Makefile index 451583e..3686d9c 100644 --- a/modules/example/Makefile +++ b/modules/example/Makefile @@ -1,6 +1,6 @@ CFLAGS=-g -mdll -mwindows -I../../api/ -D DEBUG CXXFLAGS=${CFLAGS} -LDFLAGS=-Wl,-O1 -shared -static-libgcc +LDFLAGS=-static-libgcc -Wl,-O1 -shared CPPFLAGS = CC=i686-pc-mingw32-gcc CXX=i686-pc-mingw32-g++ diff --git a/modules/example/main.cpp b/modules/example/main.cpp index 2e15520..647654e 100644 --- a/modules/example/main.cpp +++ b/modules/example/main.cpp @@ -40,6 +40,5 @@ extern "C" int __declspec(dllexport) OnModulesLoaded() //load main code from her { MessageBoxA(0, "Advanced plugin features needed services from other plugins are working from now", "INFO", MB_OK); CallService("Test", 0, 0); //usage example of service registered in core - std::list<PLUGININFO> *pluglist = (std::list<PLUGININFO>*)CallService("GetPluginInfoList", 0, 0); //get list with info for all plugins return 0; } |