[xmlsec] Problems with C/C++ compilers
Roumen Petrov
xmlsec at roumenpetrov.info
Thu Jul 11 11:17:51 PDT 2019
Dmitry Belyavsky wrote:
> Hello,
>
> We have a rather ancient instance of XMLSec (smth like 1.2.20) and a
> homebrew С++ wrapper around it.
>
> I came across that a call of sizeof() for various structures in C and C++
> give different results causing Bad Things when I try to access various
> fields of these structures.
No idea.
If I remember well all public headers are in following format:
...
<<<include external headers>>>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
<<< xmlsec related code >>>
#ifdef __cplusplus
}
#endif /* __cplusplus */
> Is there any cheap way to fix this behavior?
Dunno, as all xmlsec is "C" code.
If is not compiler defect then sample code may help to find reason.
Roumen
More information about the xmlsec
mailing list