Help!!While buidling 7z static library instead of dynamic libray wtih Client7z project

  • hzh

    hzh - 2013-12-23

    my project want to use 7z to compress some files or folders without using dynamic libray. I use the Format7z project to do some modification and try to build a static library .When i get the static libray and try to use it in my project (Modifcation from Client7z)!.It can not work.but the origin dynamic libray is OK.
    it was the same mistake while calling
    HRESULT result1 = CreateObject(&CLSID_CFormat7z, &IID_IOutArchive, (void **)&outArchive);
    it seems that something has not been initialized.

    Who can tell me how to make a static libray that can work!!!

    my lib library source code is from Cpp/7zip/Bundles/Format7z/makefile

  • Igor Pavlov

    Igor Pavlov - 2013-12-23

    DLL calls initialization code: C++ constructors for global variables. I don't know how it can work for static library.
    But if you include all C++ files directly to your project, it must work.


Log in to post a comment.