How to use OpenSSL with GCC?

前端 未结 5 1793
闹比i
闹比i 2020-11-29 06:47

I\'m trying to use openssl in a gcc program but it isn\'t working.

g++ server.cpp /usr/lib/libssl.a -o server

gives an error message, as d

5条回答
  •  囚心锁ツ
    2020-11-29 07:13

    In Eclipse IDE select Your Project property --> c/c++ Build --> Settings gcc c linker(from tools settings)--> add to Library Search Path (-L)

    /usr/lib -lssl -lcrypto

提交回复
热议问题