diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2012-03-15 01:24:57 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-15 12:52:13 +0000 |
commit | 2f43bd0651ed869265918ebefa3ba016178feb4a (patch) | |
tree | 10b40ede44921fa59a3c172e899a33d929895d43 /doc/example.c | |
parent | e98837c7b917f0801b446792ab642e669c371395 (diff) | |
download | mupdf-2f43bd0651ed869265918ebefa3ba016178feb4a.tar.xz |
Add multi-threading example based on pthreads.
Also update example code compilation instructions.
Diffstat (limited to 'doc/example.c')
-rw-r--r-- | doc/example.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/example.c b/doc/example.c index 31bf68b8..9ffe7023 100644 --- a/doc/example.c +++ b/doc/example.c @@ -2,14 +2,14 @@ // Compile a debug build of mupdf, then compile and run this example: // -// gcc -o build/debug/example -I fitz doc/example.c \ -// build/debug/libfitz.a build/debug/libfreetype.a -lpng -ljpeg \ -// -ljbig2dec -lopenjpeg -lm +// gcc -g -o build/debug/example -I fitz doc/example.c \ +// build/debug/libfitz.a build/debug/libfreetype.a \ +// build/debug/libopenjpeg.a build/debug/libjbig2dec.a \ +// build/debug/libjpeg.a -lpng -lm // // build/debug/example /path/to/document.pdf 1 200 25 -// Include MuPDF header files. The order is important! - +// Include the MuPDF header file. #include <fitz.h> void |