dev/c/undef_ref/test_lin.sh

6 lines
89 B
Bash
Executable File

#!/bin/sh
gcc -fPIC -shared -o liba.so a.c
gcc test.c -L. -la
LD_LIBRARY_PATH=. ./a.out