Skip to content
Snippets Groups Projects
Commit 3b1b0ca2 authored by Matteo Cicuttin's avatar Matteo Cicuttin
Browse files
parents 33a96000 1c2edd03
No related branches found
No related tags found
No related merge requests found
gcc -shared -o libl1.so lib1.c
gcc -shared -o libl2.so lib2.c
gcc -o main main.c -L. -ll2 -ll1
int testfun(int x)
{
return x+1;
}
int abc(int x)
{
return x+11;
}
int testfun(int x)
{
return x+2;
}
int def(int x)
{
return x+22;
}
#include <stdio.h>
int testfun(int);
int abc(int);
int def(int);
int main(void)
{
printf("%d\n", testfun(42));
printf("%d\n", abc(42));
printf("%d\n", def(42));
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment