[C] Gzip Compression #CR8 - gzip functions considered undefined references

Hey @brycegallo, you can add the following two lines to CMakeLists.txt to resolve the issue:

find_package(ZLIB REQUIRED)
target_link_libraries(http-server PRIVATE ZLIB::ZLIB)

This ensures that your project links correctly against the Zlib library.

1 Like