简体   繁体   中英

Linker Error while using openssl

I have the openssl folder here:

C:\Dev-Cpp\include\openssl

In dev c++ I gave the following to the linker command line:

-lssl -lcrypto -l<C:\Dev-Cpp\include\openssl>

and the following to when it calls the compiler:

-L<C:\Dev-Cpp\include\openssl>

After compilation the dev c++ shows this error:

cannot find -l<C:\Dev-Cpp\include\openssl> 
ld returned 1 exit status 

remove the -l<C:\\Dev-Cpp\\include\\openssl> from you link line command.

-lssl -lcrypto

you have already linked to the openssl library with -lssl -lcrypto

If you want to specify the path where the library are saved. you have to use only

-L<C:\Dev-Cpp\include\openssl>

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