LZMA dll

Help
2005-01-05
2012-12-07
  • Happy new year guys,

    I am new to 7 zip and LZMA. If my understanding is correct, 7 zip acts as a plat form and use some algorithms (LZMA is one of them) to do the compression. I want to use the compression algorithm (LZMA) in other software (like VB and R/S+).

    I downloaded the LZMA SDK 4.06. I am trying to build a dll by compiling those C++ codes in "..\lzma406\SRC\7zip\Compress\LZMA_Alone". I use the "AloneLZMA.dsw" file but it gave me the following linking error in VC++ 6.0:

    LZMAEncoder.obj : error LNK2001: unresolved external symbol _IID_IMatchFinderSetCallback
    LZMAEncoder.obj : error LNK2001: unresolved external symbol _IID_ICompressWriteCoderProperties
    LZMAEncoder.obj : error LNK2001: unresolved external symbol _IID_ICompressSetCoderProperties
    LZMAEncoder.obj : error LNK2001: unresolved external symbol _IID_ICompressSetOutStream
    LzmaAlone.obj : error LNK2001: unresolved external symbol _IID_IStreamGetSize
    LzmaAlone.obj : error LNK2001: unresolved external symbol _IID_IInStream
    LzmaAlone.obj : error LNK2001: unresolved external symbol _IID_IOutStream
    LzmaAlone.obj : error LNK2001: unresolved external symbol _IID_ISequentialInStream
    LzmaBench.obj : error LNK2001: unresolved external symbol _IID_ISequentialInStream
    LzmaAlone.obj : error LNK2001: unresolved external symbol _IID_ICompressSetOutStreamSize
    LzmaBench.obj : error LNK2001: unresolved external symbol _IID_ICompressSetOutStreamSize
    LzmaAlone.obj : error LNK2001: unresolved external symbol _IID_ICompressSetInStream
    LzmaBench.obj : error LNK2001: unresolved external symbol _IID_ICompressSetInStream
    LzmaAlone.obj : error LNK2001: unresolved external symbol _IID_ICompressSetDecoderProperties
    LzmaBench.obj : error LNK2001: unresolved external symbol _IID_ICompressSetDecoderProperties

    Do I miss anything here? Does anyone have a working example of building a dll for LZMA algorithm?

    Cheers
    Huan Huang