Skip to content

Error to compress http response payload in Slackware Current #418

Open

Description

@esdrasdemorais

After the command:

g++ main.cpp -DCROW_ENABLE_COMPRESSION

I receive the same error in both algorithms as Deflate as Gzip:

/usr/bin/ld: /tmp/cc0YTjcj.o: in function crow::compression::compress_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, crow::compression::algorithm)': main.cpp:(.text._ZN4crow11compression15compress_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_9algorithmE[_ZN4crow11compression15compress_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_9algorithmE]+0x76): undefined reference to deflateInit2_'
/usr/bin/ld: main.cpp:(.text._ZN4crow11compression15compress_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_9algorithmE[_ZN4crow11compression15compress_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_9algorithmE]+0xdf): undefined reference to deflate' /usr/bin/ld: main.cpp:(.text._ZN4crow11compression15compress_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_9algorithmE[_ZN4crow11compression15compress_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_9algorithmE]+0x153): undefined reference to deflateEnd'
collect2: error: ld returned 1 exit status

Activity

  1. The-EDev commented on Jun 9, 2023

    @The-EDev

    Are you using this library or the one at CrowCpp/Crow?

  2. esdrasdemorais commented on Jun 10, 2023

    @esdrasdemorais
    Author

    Hi, I'm using the library CrowCpp/Crow, to be more specific: I'm using crow.compress internal library from CrowCpp/Crow.

  3. The-EDev commented on Jun 11, 2023

    @The-EDev

    in that case could you please post an issue in that repo, since this one isn't maintained anymore

  4. esdrasdemorais commented on Jun 23, 2023

    @esdrasdemorais
    Author

    Sorry, but which repo?

  5. gittiver commented on Jun 24, 2023

    @gittiver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions