简体   繁体   中英

How to setup openssl on windows

I have setup openssl according to this guide

when I tried to complie my openssl-based code, it is showing fatal error: openssl/ssl.h: No such file or directory

The screenshort from msys2 mingw 64-bit is shown below.

在此处输入图像描述

Please how can I fix this? When I run openssl in the terminal, it works correctly but the code to use it (like stated above) isn't working.

I realized that using msys2 msys console fixed this.

I suggest you can try vcpkg. It is a library package management tool. Very easy to install library like openssl on windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM