Undefined reference to t1sl_steup_key_block when linking OpenSSL

后端 未结 2 647
别跟我提以往
别跟我提以往 2020-12-07 03:29

I got a problem of linking an OpenSSL library into an existing project. Where I do get it wrong?

Below are the steps I have followed.

I have downloaded the S

相关标签:
2条回答
  • 2020-12-07 03:31

    Have you tried using the libssl and libcrypto already installed in your /usr/lib directory (assuming you've installed the dev packages for both)? Once that compiles and runs without error using the default install, you can build your new libssl/libcrypto(?) from source, install to usr/local, and rebuild using the usr/local versions of the libraries.

    0 讨论(0)
  • 2020-12-07 03:46

    You need to add the flag -lssl and -lcrypto in your makefile'

    For example:

    gcc somefile.c -o someprogram -lssl -lcrypto
    
    0 讨论(0)
提交回复
热议问题