summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-01 22:14:12 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-01 22:14:12 +0300
commit46a2415de1bd97c73527922a748af5455a1c6a0e (patch)
treedacdea8fed2d7f60ea4d229a17d72202b26cc365 /modules
parent9ea3f0f6afce744e75208dc083b8459b4c33ecf0 (diff)
first working
Diffstat (limited to 'modules')
-rw-r--r--modules/example/Makefile4
-rw-r--r--modules/example/main.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/example/Makefile b/modules/example/Makefile
index cdb01c8..451583e 100644
--- a/modules/example/Makefile
+++ b/modules/example/Makefile
@@ -1,4 +1,4 @@
-CFLAGS=-O2 -msse -fomit-frame-pointer -pipe -mdll -mwindows -I../../api/ -D DEBUG
+CFLAGS=-g -mdll -mwindows -I../../api/ -D DEBUG
CXXFLAGS=${CFLAGS}
LDFLAGS=-Wl,-O1 -shared -static-libgcc
CPPFLAGS =
@@ -6,7 +6,7 @@ CC=i686-pc-mingw32-gcc
CXX=i686-pc-mingw32-g++
STRIP=i686-pc-mingw32-strip
LD=i686-pc-mingw32-ld
-LNK_COMMON=
+LNK_COMMON=-lkernel32
MAINOBJS=main.o
all: main
diff --git a/modules/example/main.cpp b/modules/example/main.cpp
index a4c0ee6..76a004d 100644
--- a/modules/example/main.cpp
+++ b/modules/example/main.cpp
@@ -28,7 +28,7 @@ extern "C" __declspec(dllexport) PLUGININFO* SetPluginInfo()
extern "C" int __declspec(dllexport) Load()
{
- std::cout<<"core run every code in this function.\n";
+ MessageBoxA(0, "Plugin Example Succesful loaded", "INFO", MB_OK);
return 0; //all ok, retrun 0
}