Skip to content

Commit 555f3ca

Browse files
author
Hannes Gredler
committed
add instructions how to compile example test_json for dynamic linking
1 parent 183c582 commit 555f3ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/test_json.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@
3636
/*
3737
* Test for json.c
3838
*
39-
* Compile with
39+
* Compile (static linking) with
4040
* gcc -o test_json -I.. test_json.c ../json.c -lm
4141
*
42+
* Compile (dynamic linking) with
43+
* gcc -o test_json -I.. test_json.c -lm -ljsonparser
44+
*
4245
* USAGE: ./test_json <json_file>
4346
*/
4447

0 commit comments

Comments
 (0)