compile in linux gcc code example
Example 1: how to compile c code to a .so
gcc -shared -o libhello.so -fPIC hello.c
Example 2: how to run c in linux
gcc hexdump.c -o hexdump //hexdump is an example for a file name
gcc -shared -o libhello.so -fPIC hello.c
gcc hexdump.c -o hexdump //hexdump is an example for a file name