Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4599744
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:35:05+00:00 2026-05-21T23:35:05+00:00

I have downloaded and built Xerces-c on linux: Linux xxxx 2.6.24.7-server-3mnb #1 SMP Wed

  • 0

I have downloaded and built Xerces-c on linux:

Linux xxxx 2.6.24.7-server-3mnb #1 SMP Wed Sep 9 16:34:18 EDT 2009 x86_64 Intel(R) Xeon(R) CPU            3065  @ 2.33GHz GNU/Linux

Created the simple program:

#include <xercesc/sax2/XMLReaderFactory.hpp>
#include <xercesc/sax2/SAX2XMLReader.hpp>
#include <xercesc/sax2/DefaultHandler.hpp>
#include <xercesc/util/XMLUni.hpp>
//#include <xercesc/validators/common/Grammar.hpp>

   XERCES_CPP_NAMESPACE_USE;

int main(int argC, char *argv[])
{
    //  DefaultHandler handler;
    SAX2XMLReader *parser = XMLReaderFactory::createXMLReader();
    delete parser;
    return 0;
}

compiled it:

g++ -lcurl -o xtest test.cpp /usr/local/lib/libxerces-c.a

successful compile, run it and this is what I get:

 ./xtest
xtest: xercesc/util/XMemory.cpp:63: static void* xercesc_3_1::XMemory::operator new(size_t, xercesc_3_1::MemoryManager*): Assertion `manager != 0' failed.
Aborted (core dumped)

Anyone have similar experience/successfully built and used this library… how? It’s becoming a real pain and apparently it’s the only thing for linux that properly validates an XML document against multiple schemas with namespace support (or is it??)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T23:35:06+00:00Added an answer on May 21, 2026 at 11:35 pm

    It looks like you forgot to call XMLPlatformUtils::Initialize before using any xerces functionality.

    Initialization must be called first in any client code.

    Also, don’t forget XMLPlatformUtils::Terminate() once you’re done with xerces i.e. at the end of the program.

    The termination call is currently optional, to aid those dynamically loading the parser to clean up before exit, or to avoid spurious reports from leak detectors.

    AFAIR failing to init xerces results in the error you listed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have RHEL 5.2, with Boost 1.33 installed. I downloaded boost_1_44_0.tar.bz2. and built it.
I have built the android develop environment and downloaded the android4.1-cts source code from
I just downloaded Xcode 4.1 that comes with 4.3.2 sdk. I have built a
I have downloaded Apache Tomcat sources and built them with Ant script provided. I
I have written a Linux kernel module, which I included in a kernel downloaded
I have built an MVC 3 application and I have a Web Server 2008
I have downloaded mysql-connector-c-6.0.2. I build it using below commands: cmake -G Unix Makefiles
I have built a static version of qt and download a static version of
have downloaded page by webbrowser and need to get mail address. But it is
I have downloaded a Java 3d-1_5_1-macosx.zip. I am trying unzip the file. The file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.