6 lines
223 B
Plaintext
6 lines
223 B
Plaintext
gcc -c -fPIC lib.c
|
|
gcc -shared -o libmy2.so lib.o
|
|
Windows:
|
|
gcc -o prog2 main.c -L ./ c:\geekbrains.ru\Projects\C\MIPI_AC_Git\MIPI_AdvancedC\Lect3\36\libmy2.so
|
|
Linux:
|
|
gcc -o prog2 main.c -L ./ -lmy2 -rpath /home/user/mylib2/ |