Tout à fait, j'avais eu également ce problème, mais cela provoquait une erreur de link.
J'arrive à compiler et à générer ma dll, elle plante pendant l'exécution, lors d'un appel à une fonction de la lib.
Voilà le résultat le plus pertinent que j'avais trouvé sur la Toile à propos de mon message d'erreur :
On Windows the OpenSSL guys have included code with 0.9.8 and above to
allow OpenSSL to work correctly regardless of the MSVC runtime libraries
that have been used with the host application. This has become noticable
with the MSVC++ build in which any client apps that connect using libpq
with a client certificate will bail out with an error such as:
C:\pgsql-8.3>bin\psql -p 5433 postgres
OPENSSL_Uplink(00314010,05): no OPENSSL_Applink
The server doesn't seem to be affected, but the attached patch fixes the
problem for the client apps. Unfortunately it must be included in the
app itself, and not libpq.
I'm not sure what the OpenSSL guys were thinking here - apps like
pgAdmin which previously didn't use OpenSSL directly now need the source
code to build. I've also seen reports on the -odbc list that psqlODBC is
similarly affected, though how on earth we're meant to get the AppLink
code into apps such as MS Access or Crystal Reports is beyond me.
S'en suivait un ifdef à mettre pour intégrer applink.c au programme, cependant cela ne solutionne pas mon problème, cette astuce était à l'origine pour un .exe et non une dll (je ne sais pas s'il y a un rapport).
Merci de ton aide et du temps que tu y passes.