E:\Code\C&C++\OD Plugin>make
gcc -c test.c
In file included from test.c:4:
plugin.h:100:1: warning: "_export" redefined
In file included from D:/Perl/site/lib/auto/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:48,
from test.c:2:
D:/Perl/site/lib/auto/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windef.h:138:1: warning: this is the location of the previous definition
test.c: In function `ODBG_Plugininit':
test.c:39: warning: passing arg 1 of `Registerpluginclass' from incompatible pointer type
test.c:39: warning: passing arg 4 of `Registerpluginclass' from incompatible pointer type
test.c: In function `ODBG_Plugindestroy':
test.c:73: warning: passing arg 1 of `Unregisterpluginclass' from incompatible pointer type
test.c: In function `CreateHelloWindow':
test.c:99: warning: passing arg 2 of `CreateWindowExA' from incompatible pointer type
gcc -o test.dll test.o -L.\ -lOLLYDBG
test.o:test.c:(.text+0x78): undefined reference to `Registerpluginclass'
test.o:test.c:(.text+0xa6): undefined reference to `AddtoList'
test.o:test.c:(.text+0xc2): undefined reference to `AddtoList'
test.o:test.c:(.text+0x165): undefined reference to `Unregisterpluginclass'
test.o:test.c:(.text+0x1c1): undefined reference to `CreateSolidBrush@4'
test.o:test.c:(.text+0x20e): undefined reference to `TextOutA@20'
test.o:test.c:(.text+0x21c): undefined reference to `DeleteObject@4'
test.o:test.c:(.text+0x27e): undefined reference to `Plugingetvalue'
D:/Perl/site/lib/auto/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
make: *** [test.dll] Error 1