@echo off REM first built a relocatable Ada DLL echo Build the Ada dll gcc -c -O2 -mpentium -fomit-frame-pointer -s -o adadll.o adadll.adb gnatbind -n -x adadll.ali gnatlink -g -mdll -s -o adadll.dll adadll.ali -Xlinker --base-file=adadll.base dlltool --dllname adadll.dll --base-file adadll.base --output-exp adadll.exp --def adadll.def gnatlink -g -mdll -s -o adadll.dll adadll.ali -Xlinker --base-file=adadll.base adadll.exp dlltool --dllname adadll.dll --base-file adadll.base --output-exp adadll.exp --def adadll.def gnatlink -g -mdll -s -o adadll.dll adadll.ali -Xlinker adadll.exp REM remove junk files del b_adadll.c del b_adadll.o del adadll.o del adadll.ali del adadll.base del adadll.exp REM create a Microsoft-style import library echo Build the import library lib -machine:IX86 -def:adadll.def -out:adadll.lib > nul REM remove junk files del adadll.exp REM compile and link the c++ client program echo build the client program cl /O2 client.cpp adadll.lib > nul REM remove junk files del client.obj