dev/c/undef_ref/test_lin.sh

6 lines
89 B
Bash
Raw Normal View History

2013-02-07 13:28:59 +04:00
#!/bin/sh
gcc -fPIC -shared -o liba.so a.c
gcc test.c -L. -la
LD_LIBRARY_PATH=. ./a.out