From: Przemyslaw Skibinski Date: Mon, 21 Nov 2016 13:22:08 +0000 (+0100) Subject: lib\README.md: added Using MinGW+MSYS to create DLL X-Git-Tag: v1.1.2~74^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62d19a6f39655578534999bc23dc673271ebff36;p=thirdparty%2Fzstd.git lib\README.md: added Using MinGW+MSYS to create DLL --- diff --git a/lib/README.md b/lib/README.md index d321f06b3..d33ad52c2 100644 --- a/lib/README.md +++ b/lib/README.md @@ -43,6 +43,22 @@ Other optional functionalities provided are : For example, advanced API for version `v0.4` is in `legacy/zstd_v04.h` . +#### Using MinGW+MSYS to create DLL + +DLL can be created using MinGW+MSYS with the `make libzstd` command. +This command creates `dll\libzstd.dll` and the import library `dll\libzstd.lib`. +The import library is only required with Visual C++. +The header file `zstd.h` and the dynamic library `dll\libzstd.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 ZSTD consists of a single `test-dll.c` +file it should be linked with `dll\libzstd.dll`. For example: +``` + gcc $(CFLAGS) -Iinclude/ test-dll.c -o test-dll dll\libzstd.dll +``` +The compiled executable will require ZSTD DLL which is available at `dll\libzstd.dll`. + + #### Obsolete streaming API Streaming is now provided within `zstd.h`. diff --git a/lib/dll/example/README.md b/lib/dll/example/README.md index 34d19855c..957a29f35 100644 --- a/lib/dll/example/README.md +++ b/lib/dll/example/README.md @@ -39,7 +39,7 @@ The header files from `include\` and the dynamic library `dll\libzstd.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 ZSTD consists of a single `test-dll.c` -file it should be compiled with "libzstd.dll". For example: +file it should be linked with `dll\libzstd.dll`. For example: ``` gcc $(CFLAGS) -Iinclude\ test-dll.c -o test-dll dll\libzstd.dll ```