summaryrefslogtreecommitdiffstats
path: root/lib/README.md
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-16 19:37:05 (GMT)
committerYann Collet <cyan@fb.com>2016-11-16 19:37:05 (GMT)
commit7fde7438d39f8452f89e3fee5ba4a16c502dffb0 (patch)
tree4f08a51bee65e79fc00122400bcb9d1c8ac9ff4e /lib/README.md
parenta22ca9378be9ace2aa6d08b80f767241d759dc1b (diff)
parente9bec0fdcce0bdf68814bd03f1f0c03659494439 (diff)
downloadlz4-7fde7438d39f8452f89e3fee5ba4a16c502dffb0.zip
lz4-7fde7438d39f8452f89e3fee5ba4a16c502dffb0.tar.gz
lz4-7fde7438d39f8452f89e3fee5ba4a16c502dffb0.tar.bz2
Merge branch 'dev' of github.com:Cyan4973/lz4 into devv1.7.3
Diffstat (limited to 'lib/README.md')
-rw-r--r--lib/README.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/README.md b/lib/README.md
index 430be1f..18793d4 100644
--- a/lib/README.md
+++ b/lib/README.md
@@ -42,12 +42,16 @@ It must be used with static linking ***only***.
DLL can be created using MinGW+MSYS with the `make liblz4` command.
This command creates `dll\liblz4.dll` and the import library `dll\liblz4.lib`.
-To compile a project the import library has to be added to linking options.
+The import library is only required with Visual C++.
+The header files `lz4.h`, `lz4hc.h`, `lz4frame.h` and the dynamic library
+`dll\liblz4.dll` are required to compile a project using gcc/MinGW.
+The dynamic library has to be added to linking options.
It means that if a project that uses LZ4 consists of a single `test-dll.c`
file it should be compiled with "liblz4.lib". For example:
```
- gcc $(CFLAGS) test-dll.c -o test-dll liblz4.lib
+ gcc $(CFLAGS) -Iinclude/ test-dll.c -o test-dll dll\liblz4.dll
```
+The compiled executable will require LZ4 DLL which is available at `dll\liblz4.dll`.
#### Miscellaneous