ttxxyy112233
V2EX  ›  C

请问在 Win10 下如何在 vscode 中使用 openssl 库

  •  
  •   ttxxyy112233 · Jan 13, 2018 · 3593 views
    This topic created in 3087 days ago, the information mentioned may be changed or developed.

    在 codeblocks 中使用没问题,在 vscode 中使用就说 cannot find -lcrypto. 已经使用-L "C:/OpenSSL-Win64/lib"了。 请问问题出在哪?

    2 replies    2018-01-14 11:46:54 +08:00
    gnaggnoyil
        1
    gnaggnoyil  
       Jan 14, 2018
    lcrypto 不是 GNU ld 用的参数吗?在 win 下用 GNU ld 那就是在用 mingw 咯?mingw 下用-lcrypto 那首先应该找找 libcrypto.a 在不在啊.你确定 C:/OpenSSL-Win64/lib 底下的 library file 就是以"libXXXXX.a"的形式存的?
    h4lbhg1G
        2
    h4lbhg1G  
       Jan 14, 2018
    宇宙第一 C++ IDE vs,干嘛不用?

    vcpkg 已经有 openssl 了吧,那么直接引入头文件就好了,或者 vcpkg 装完后的说明 cmake 一下。

    如果有足够的理由要用 mingw,那么还是写 makefile 吧,用 msys2 环境。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   933 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 6b34f497 · 29ms · UTC 22:47 · PVG 06:47 · LAX 15:47 · JFK 18:47
    ♥ Do have faith in what you're doing.