rem compile DLL
\pgcc\bin\gcc  \pgcc\samp\dll\testdll.c \pgcc\samp\dll\testdll.def -o \pgcc\samp\dll\testdll.dll -target=dll -Wl,--out-implib -Wl,\pgcc\samp\dll\libtestdll.a -Wl,--compat-implib -Wl,-s
rem import library is already created by linker in the previous line (note -Wl switches)
rem compile test EXE
\pgcc\bin\gcc \pgcc\samp\dll\test.cpp -ltestdll -L\pgcc\samp\dll\ -target=con -o\pgcc\samp\dll\test.exe  -Wl,-s
