set PATH=C:\wherever\it\is;%PATH% #### gendef dptcpiphi.dll dlltool --kill-at --input-def dptcpiphi.def --output-lib libdptcpiphi.a #### use Inline C => Config => LIBS => '-LC:/my/libs -ldptcpiphi';