LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   undefined reference to `xercesc_3_1::XMemory::operator delete(void*)'. PLS HELP (https://www.linuxquestions.org/questions/linux-software-2/undefined-reference-to-%60xercesc_3_1-xmemory-operator-delete-void%2A-pls-help-4175604630/)

Somreeta 04-26-2017 12:26 AM

undefined reference to `xercesc_3_1::XMemory::operator delete(void*)'. PLS HELP
 
Hello,
While installing "Simulation of Urban MObility"(SUMO) I am getting the following error. The error is not coming while doing ./configure. But when I am doing make the error is coming. PLS help
make[3]: Leaving directory `/home/somreeta/sumo-0.26.0/src/od'
Making all in marouter
make[3]: Entering directory `/home/somreeta/sumo-0.26.0/src/marouter'
marouter_main.o: In function `xercesc_3_1::XMLAttDefList::~XMLAttDefList()':
marouter_main.cpp(.text._ZN11xercesc_3_113XMLAttDefListD0Ev[_ZN11xercesc_3_113XMLAttDefListD5Ev]+0x8):undefined reference to `xercesc_3_1::XMemory::operator delete(void*)'
marouter_main.o:
In function `xercesc_3_1::DefaultHandler::fatalError(xercesc_3_1::SAXParseException const&)':marouter_main.cpp(.text._ZN11xercesc_3_114DefaultHandler10fatalErrorERKNS_17SAXParseExcepti onE[xercesc_3_1::DefaultHandler::fatalError(xercesc_3_1::SAXParseException const&)]+0x2d): undefined reference to `xercesc_3_1::SAXParseException::SAXParseException(xercesc_3_1::SAXParseException const&)'
marouter_main.cpp:(.text._ZN11xercesc_3_114DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_1::DefaultHandler::fatalError(xercesc_3_1::SAXParseException const&)]+0x32): undefined reference to `xercesc_3_1::SAXParseException::~SAXParseException()'
marouter_main.cpp:

astrogeek 04-26-2017 12:36 AM

Please place your code and error message snippets inside [CODE]...[/CODE] tags for better readability. You may type those yourself or click the "#" button in the edit controls.

From what I can see I would guess that you do not have the xercesc XML parser package installed.

You will need to tell us what Linux distro and version you are using to get a useful answer about how to use your package manager.

Somreeta 04-26-2017 12:52 AM

Thank you for the information. I am using Ubuntu 12.04 LTS.

astrogeek 04-26-2017 02:19 AM

I was hoping that an Ubuntu user would jump in here, but looks like you are stuck with me for the time being! ;)

First, I would use the package manager to verify whether a xerces-c package is installed on your system. You may have the program installed, but what you need is the dev package which has the includes and headers needed by your build environment.

Then I would locate the xerces-c and xerces-c-dev package for your version in the official repos, and install it if not already installed.

A quick search found this...

Xerces-c source package

...so it looks as if it is supported, and I see the dev package listed there as well.

If you are not sure how to use the package manager then we will need to wait for someone more familiar with Ubuntu to join the conversation.

Once that is installed, try building your program again and see if that deosn't fix this problem!

Good luck!

knudfl 04-26-2017 06:41 AM

@Somreeta : Welcome to LQ. .... And please specify Ubuntu 12.04: 32 or 64bits ? ?

You will get an answer for the SUMO issues when you have changed the formatting of the three posts :
[code]error text[/code]
http://www.linuxquestions.org/questi....php?do=bbcode

Like
Code:

make[3]: Leaving directory `/home/somreeta/sumo-0.26.0/src/od'
Making all in marouter
make[3]: Entering directory `/home/somreeta/sumo-0.26.0/src/marouter'
marouter_main.o: In function `xercesc_3_1::XMLAttDefList::~XMLAttDefList()':
marouter_main.cpp(.text._ZN11xercesc_3_113XMLAttDefListD0Ev[_ZN11xercesc_3_113XMLAttDefListD5Ev]+0x8):undefined reference to `xercesc_3_1::XMemory::operator delete(void*)'
marouter_main.o:
In function `xercesc_3_1::DefaultHandler::fatalError(xercesc_3_1::SAXParseException const&)':marouter_main.cpp(.text._ZN11xercesc_3_114DefaultHandler10fatalErrorERKNS_17SAXParseExcepti onE[xercesc_3_1::DefaultHandler::fatalError(xercesc_3_1::SAXParseException const&)]+0x2d): undefined reference to `xercesc_3_1::SAXParseException::SAXParseException(xercesc_3_1::SAXParseException const&)'
marouter_main.cpp:(.text._ZN11xercesc_3_114DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_1::DefaultHandler::fatalError(xercesc_3_1::SAXParseException const&)]+0x32): undefined reference to `xercesc_3_1::SAXParseException::~SAXParseException()'
marouter_main.cpp:

@astrogeek : SUMO is an application that creates scenario files for ns2, etc.
..... And the error may not be particularly Ubuntu related. (Wrong xerces-c version.)


-


All times are GMT -5. The time now is 05:45 AM.