You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Florent Bouchy <fl...@gmail.com> on 2005/09/07 18:07:39 UTC

Problem recompiling the 2.7.0 version

Hi all,

I'm having a problem while trying to compile the sources for the 2.7.
Actually, I only need the XercesLib project (to generate the .lib and
.dll files) ; but I DO need everything to be __stdcall, and not
__cdecl, as by default.

I was using a __stdcall version of xerces-c 2.6, which I compiled
myself with VC7.1 ; evereything worked fine, until the day when the
XMLString::Transcode function bugged (because gTranscoder isn't
initialized (==NULL) so i get a memory acces violation, altough I
initialized the platform and it worked elsewhere). Anyway, I also
wanted to try this new version 2.7...

The problem is that, even after having specified in each project that
it should use __stdcall, I get a compilation error : in
SortArray::sort(), there's a call to the qsort() function defined in
MSVC's include files stdlib.h and search.h, and the 4th parameter is
always explicitely using __cdecl !!!!


So, does anyone have an idea about how I could get this right ? I
mean, to compile XercesLib using __stdcall ... Even if the solution is
to use another sorting function, I'm taking it !


Thanks in advance.


Florent