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 9117789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:58:45+00:00 2026-06-17T04:58:45+00:00

Possible Duplicate: Are there general guidlines for solving undefined reference/unresolved symbol issues? I want

  • 0

Possible Duplicate:
Are there general guidlines for solving undefined reference/unresolved symbol issues?

I want to transform an xml to insert sql statements. I have ready the xml and xslt files and I know that transformation runs ok (tested with Oxygen).

Now, I’m coding this transformation with c++ unsuccessfully.

I have tried to include this libraries:

#include <libxml2/libxml/xmlversion.h>
#include <libxml2/libxml/parser.h>
#include <libxml2/libxml/valid.h>
#include <libxml2/libxml/xmlschemastypes.h>
#include <libxml2/libxml/xmlschemas.h>
#include <libxml2/libxml/xmlmemory.h>
#include <libxml2/libxml/debugXML.h>
#include <libxml2/libxml/HTMLtree.h>
#include <libxml2/libxml/xmlIO.h>
#include <libxml2/libxml/DOCBparser.h>
#include <libxml2/libxml/xinclude.h>
#include <libxml2/libxml/catalog.h>
#include <xalanc/Include/PlatformDefinitions.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <xalanc/XalanTransformer/XalanTransformer.hpp>

but compiler show me a lot of errors in code like:

/home/kimpa2007/xml/src/main.cc:108: undefined reference to `xercesc_2_8::XMLUni::fgXercescDefaultLocale'

/home/kimpa2007/xml/src/main.cc:109: undefined reference to `xalanc_1_10::XalanTransformer::initialize(xercesc_2_8::MemoryManager&)'

Some one can explain how to code this transformation in a siple way?

  • 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-06-17T04:58:47+00:00Added an answer on June 17, 2026 at 4:58 am

    They are several ways to make XSL transformation, see Process an XML document using an XSLT stylesheet micro howto:

    • xsltproc
    • Xalan
    • SaxonB
    • Saxon6

    I see that you are intended to use Xalan. Perhaps this is actually the right way. Notice that this library needs to be configured. You can get help to configure it on Xayno90 post. I copy-paste here steps:

    I finally managed to compile and install Xerces and Xalan together for
    Ubuntu 10.04, do as follows:

    step 1

    sudo apt-get source libxerces-c28
    sudo apt-get source libxalan110
    

    step 2.

    add "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" to /etc/ld.so.conf
    

    step 3.

    you may need to change owner of source packages from root to normal user
    

    step 4. Build Xerces

    export XERCESCROOT=/home/user/xerces-c2-2.8.0+deb1
    cd $XERCESCROOT
    cd src/xercesc
    ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -rpthread -b64 -P /usr/local
    make
    sudo XERCESCROOT=$XERCESCROOT make install
    

    step 5. Build Xalan

    export XERCESCROOT=/usr/local
    cd $XERCESCROOT
    /usr/local$ cd ~
    export XERCESCROOT=/home/user/xerces-c2-2.8.0+deb1
    cd $XERCESCROOT
    cd ~
    export XALANCROOT=/home/user/xalan-1.10/c
    cd $XALANCROOT
    ./runConfigure -p linux -c gcc -x g++ -b64 -P /usr/local
    make
    sudo XALANCROOT=$XALANCROOT make install
    

    step 6.

    Check the directories of /usr/local/lib and /usr/local/include to confirm the both Xerces and Xalan are both installed

    The needs to be a wiki for a Ubuntu specific install of these XML libraries and packages as there is no definitive guide for this currently plus the install methods for other OS had to be interpreted in order to fit this installation.

    Also:

    • Step 0 is to download projects from apach ( https://xalan.apache.org/old/xalan-c/download.html, http://ftp.udc.es/apache/xalan/xalan-c/sources/)
    • Try to compile it from command line or configure paths in your properties project IDE.
    • Update post libraries to current version.
    • After installation try to compile path/c/samples/XalanTransform that is closer to your needs

    Finally, read this SO posts:

    • Is XSLT worth it?
    • Are there any XSLT to C++ compilers available?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Is there a proved mouseOver workaround for FirefoxDriver in Selenium2? I want
Possible Duplicate: Properties vs Methods Is there any rule or general best practice as
Possible Duplicate: Hash tables in MATLAB General Question Is there any way to get
Possible Duplicate: Are there any disadvantages to always using nvarchar(MAX)? Is there a general
Possible Duplicate: Is there an interpreter for C? I want to practice C a
Possible Duplicate: Is there any hash function in PL/SQL? I have a column with
Possible Duplicate: Is there a way of drawing a caption box in matplotlib Is
Possible Duplicate: Is there a CSS parent selector? CSS selector for “foo that contains
Possible Duplicate: Is there any working memory profiler for Python3 I have some script
Possible Duplicate: Is there a standard date/time format that can be passed on a

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.