Hi Users.

Me again, but this time I write to share the solution to my problem ;)

To use openssl in Dev-C++ on Windows:

1.- Install Win32 OpenSSL
v1.0.0a<http://www.slproweb.com/download/Win32OpenSSL-1_0_0a.exe>or
Win32
OpenSSL v1.0.0a
Light<http://www.slproweb.com/download/Win32OpenSSL_Light-1_0_0a.exe>(from
http://www.slproweb.com/products/Win32OpenSSL.html)
2.- Then, in Dev-C++:
Go to 'Project->Project Options->Parameters->Linker' and add 'libeay32.a'
and 'ssleay32.a' libs. Both are in 'C:\OpenSSL-Win32\lib\MinGW' directory.
Go to 'Project->Project Options->Directories', and add
'C:\OpenSSL-Win32\include' directory.

In this way I could compile my project.

>From Chile, best regards.

gabriel


2010/11/12 g A b R i E L <lie.in.our.d...@gmail.com>

> Hi Users.
>
> How I can compiling openssl in dev-c++ for Windows?
>
> I tried with -lssl and -lcrypto in linker option (Project->Project
> Options->Parameters->Linker), but it not  work.
>
> Part of Compile log is:
>
> "
> C:/Dev-Cpp/lib/libcrypto.a(bss_conn.o)(.text+0x40):bss_conn.c: undefined
> reference to `conn...@12'
> C:/Dev-Cpp/lib/libcrypto.a(bss_conn.o)(.text+0xe4):bss_conn.c: undefined
> reference to `setsock...@20'
> C:/Dev-Cpp/lib/libcrypto.a(bss_conn.o)(.text+0x192):bss_conn.c: undefined
> reference to `ht...@4'
> C:/Dev-Cpp/lib/libcrypto.a(bss_conn.o)(.text+0x1bf):bss_conn.c: undefined
> reference to `ht...@4'
> C:/Dev-Cpp/lib/libcrypto.a(bss_conn.o)(.text+0x1d5):bss_conn.c: undefined
> reference to `soc...@12'
> ...
> "
>
> I have installed the OpenSSL 0.9.8a package for Dev-C++
>
> Thanks!!
>
>
> gabriel
>

Reply via email to