here's how to make a dll,
copy dllcrt2.o from your MinGW\lib to your BlitzMax\lib folder then save the following to files in the same directory.
dlltest.bmx
dlltest.def
then in the command prompt,
cd C:\BlitzMax\bin
bmk makelib C:\dlltest.bmx
copy dllcrt2.o from your MinGW\lib to your BlitzMax\lib folder then save the following to files in the same directory.
dlltest.bmx
Function AddIntegers(int1,int2) Return int1+int2 End Function
dlltest.def
EXPORTS AddIntegers=bb_AddIntegers
then in the command prompt,
cd C:\BlitzMax\bin
bmk makelib C:\dlltest.bmx