diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2012-04-29 11:51:25 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2012-04-29 11:51:25 +0300 |
commit | 29fa0566d5df199cb9acb2d17bf7eea61acc7fa1 (patch) | |
tree | 160627aeec5f73e3da40e225199af162cde690bf /windows | |
parent | liblzma: Remove outdated comments. (diff) | |
download | xz-29fa0566d5df199cb9acb2d17bf7eea61acc7fa1.tar.xz |
Windows: Update notes about static linking with MSVC.
Diffstat (limited to 'windows')
-rw-r--r-- | windows/README-Windows.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/windows/README-Windows.txt b/windows/README-Windows.txt index 786d66bd..72c5a988 100644 --- a/windows/README-Windows.txt +++ b/windows/README-Windows.txt @@ -90,10 +90,15 @@ Microsoft Visual C++ lib /def:liblzma.def /out:liblzma.lib /machine:x64 - Linking against static liblzma should work too. Rename liblzma.a - to e.g. liblzma_static.lib and tell MSVC to link against it. You - also need to tell lzma.h to not use __declspec(dllimport) by defining - the macro LZMA_API_STATIC. You can do it either in the C/C++ code + Linking against static liblzma might work too, but usually you + should use liblzma.dll if possible. (Or, if having a decompressor + is enough, consider using XZ Embedded or LZMA SDK which can be + compiled with MSVC.) + + To try linking against static liblzma, rename liblzma.a to e.g. + liblzma_static.lib and tell MSVC to link against it. You also need + to tell lzma.h to not use __declspec(dllimport) by defining the + macro LZMA_API_STATIC. You can do it either in the C/C++ code #define LZMA_API_STATIC #include <lzma.h> |