#!/bin/sh gcc test.c -o test.exe dlltool.exe -z test.def --export-all-symbol test.exe dlltool.exe -U -d test.def -l test.a gcc -shared -o liba.dll a.c test.a gcc -DPLUGINS_ENABLED=1 -o test.exe test.c -L. -la ./test.exe #gcc test.c -o test.exe #dlltool.exe -z test.def --export-all-symbol test.exe #gcc -shared -o liba.dll a.c test.def #gcc -DPLUGINS_ENABLED=1 test.c -L. -la #LD_LIBRARY_PATH=. ./a.out