浏览代码

-lm may be necessary to compile.


git-svn-id: http://svn.code.sf.net/p/cjson/code@7 e3330c51-1366-4df0-8b21-3ccf24e3d50e
Dave Gamble 16 年之前
父节点
当前提交
10d4ec62e0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      README

+ 2 - 2
README

@@ -34,7 +34,7 @@ First up, how do I build?
 Add cJSON.c to your project, and put cJSON.h somewhere in the header search path.
 Add cJSON.c to your project, and put cJSON.h somewhere in the header search path.
 For example, to build the test app:
 For example, to build the test app:
 
 
-gcc cJSON.c test.c -o test
+gcc cJSON.c test.c -o test -lm
 ./test
 ./test
 
 
 
 
@@ -244,4 +244,4 @@ which are more complex than I'd care to try and stash into a const char array[].
 Enjoy cJSON!
 Enjoy cJSON!
 
 
 
 
-- Dave Gamble, Aug 2009
+- Dave Gamble, Aug 2009