Max Terentiev wrote

> I downloaded OpenSSL source and compile it using BCB6.
> Now It's possible to statically link libeay32.lib and ssleay32.lib to my
> project and use it with Synapse without .dll's ?
> I want to compile OpenSSL directly to my .exe and avoid
> distributing libeay32.dll and ssleay32.dll with my app.
>
> It's possible ?
For static linking you need to fix the declarations of the called 
functions (in Synapse, e.g. switchable with a directive)

Also, if you use stock openssl source, you might need to find a solution 
for macro's that are typically converted into functions by the DLL 
maker, since otherwise they are useless.(*) If OpenSSL has C++isms in 
the called prototypes, you might need to wrap them in C++ first. Also 
you might need to explicitely call lib initialization and finalization 
routines.

The macro and initialization problem is often also why you can't use 
other 3rd party openSSL dlls, since every porter has a different 
solution for them (and plain and simple versioning is another problem)

Marco

(*) it's years ago since I tried. Maybe they have now made functions out 
of them.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to