Skip to content

Commit eba4363

Browse files
committed
fix the position of the -l to avoid unreferenced symbol error
1 parent 1d3af18 commit eba4363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib-abi/abi-main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Run like this:
88
*
99
* $ gcc -m32 -shared -o libabi.so libabi-32.c
10-
* $ gcc -m32 -L. -Xlinker -R . -labi abi-main.c
10+
* $ gcc -m32 -L. -Xlinker -R . abi-main.c -labi
1111
* $ ./a.out 7 4
1212
* 10002000
1313
* result: 11

0 commit comments

Comments
 (0)