How to compile .c file with OpenSSL includes?

前端 未结 7 911
醉梦人生
醉梦人生 2020-11-27 03:40

I am trying to compile a small .c file that has the following includes:

#include 
#include 
#include 

        
7条回答
  •  Happy的楠姐
    2020-11-27 04:11

    Use the -I flag to gcc properly.

    gcc -I/path/to/openssl/ -o Opentest -lcrypto Opentest.c

    The -I should point to the directory containing the openssl folder.

提交回复
热议问题