Added linking
This commit is contained in:
1
linking/h.c
Normal file
1
linking/h.c
Normal file
@ -0,0 +1 @@
|
|||||||
|
int h = 10;
|
1
linking/i.c
Normal file
1
linking/i.c
Normal file
@ -0,0 +1 @@
|
|||||||
|
int i = 10;
|
7
linking/main.c
Normal file
7
linking/main.c
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// @COMPILECMD gcc -shared i.c -o i.so; gcc -shared h.c -o h.so; gcc $@ i.so h.so
|
||||||
|
extern int i;
|
||||||
|
extern int h;
|
||||||
|
|
||||||
|
signed main(){
|
||||||
|
return h;
|
||||||
|
}
|
Reference in New Issue
Block a user