Skip to content

SSL build fails with mingw #1669

Closed
Closed
@JamesBremner

Description

@JamesBremner

The README states

SSL support is available with CPPHTTPLIB_OPENSSL_SUPPORT. libssl and libcrypto should be linked.

Using this, the linker generate many undefined errors

Issue #1561 states

target_link_libraries(SafeTool PRIVATE ${CSP_LIBRARY} wsock32 ws2_32 crypt32 OpenSSL::SSL OpenSSL::Crypto

This also generate undefined errors.

To successfully build SSL support in mingw the following libraries need to be linked in this order

-lcrypt32 -lssl -lcrypto -lws2_32

Note: this is a documentation bug.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions