dev/c/undef_ref/win/test.sh

7 lines
158 B
Bash
Executable File

#!/bin/sh
gcc -o test_dll.dll test_dll.c -shared
gcc -o shared.dll shared.c -shared -L. -ltest_dll
gcc -o test.exe test.c -L. -ltest_dll -lshared
./test.exe