GCC Dynamic library building problem
- by Sirish Kumar
I am new to linux, while compiling with dynamic library I am getting the segmentationfault error.
I have two files
ctest1.c
void ctest1(int *i)
{
*i =10;
}
ctest2.c
void ctest2(int *i)
{
*i =20;
}
I have compiled both files to a shared library named libtest.so using following command
gcc -shared…