[xmlsec] Problems with C/C++ compilers

Dmitry Belyavsky beldmit at gmail.com
Fri Jul 12 02:42:43 PDT 2019


Dear Alexey,

Thank you!
That was the clue.

BTW, is this definition available in public headers of xmlsec?

On Fri, Jul 12, 2019 at 12:05 AM Aleksey Sanin <aleksey at aleksey.com> wrote:

> Make sure you have -DXMLSEC_NO_SIZE_T=1 defined (if it is defined
> during xmlsec library compilation).
>
> Aleksey
>
> On 7/11/19 11:17 AM, Roumen Petrov wrote:
> > 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
> > _______________________________________________
> > xmlsec mailing list
> > xmlsec at aleksey.com
> > http://www.aleksey.com/mailman/listinfo/xmlsec
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
>


-- 
SY, Dmitry Belyavsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20190712/9c128515/attachment.html>


More information about the xmlsec mailing list