[xmlsec] static compiling

Aleksey Sanin aleksey at aleksey.com
Wed Mar 16 07:07:04 PST 2005


> Of course the functions :
> warning: implicit declaration of function
> `xmlSecCryptoAppInit'
> warning: implicit declaration of function
> `xmlSecCryptoInit'
> are not found declared and symbol are missing.
> 
Yes, you are right. The problem is that if you are linking
staticaly then you have to link with particular xmlsec crypto
library (say, xmlsec-openssl). Thus you need to inculde
corresponding symbols.h file instead (e.g. xmlsec/openssl/symbols.h).
It might be a good idea to also add the following defines:

#define LIBXML_STATIC
#define LIBXSLT_STATIC
#define XMLSEC_STATIC

Currently it is mostly needed for Windows but it might help you
in the future if one would decide to have special case code for
static linking in *nix too.


Aleksey




More information about the xmlsec mailing list