Added -pthread flag to unix compilation example

This commit is contained in:
Sergey Lyubka committed 2014-03-02 13:00:44 +00:00
1 parent e0aceb4f3a
commit 2f0b411ddd
1 file changed
+2 -2
+2 -2
View File
@@ -27,8 +27,8 @@ To compile it, put `mongoose.c`, `mongoose.h` and `app.c` into one
folder, start terminal on UNIX or Visual Studio command line prompt on Windows, folder, start terminal on UNIX or Visual Studio command line prompt on Windows,
and run the following command: and run the following command:
cc app.c mongoose.c -o app # on Unix cc app.c mongoose.c -pthread -o app # on Unix
cl app.c mongoose.c /TC /MD # on Windows cl app.c mongoose.c /TC /MD # on Windows
When run, this simple application opens port 8080 and serves static files, When run, this simple application opens port 8080 and serves static files,
CGI files and lists directory content in the current working directory. CGI files and lists directory content in the current working directory.