LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2017, 12:26 AM   #1
Somreeta
LQ Newbie
 
Registered: Apr 2017
Posts: 3

Rep: Reputation: Disabled
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:

Last edited by Somreeta; 04-26-2017 at 12:29 AM.
 
Old 04-26-2017, 12:36 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,661
Blog Entries: 11

Rep: Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706
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.
 
Old 04-26-2017, 12:52 AM   #3
Somreeta
LQ Newbie
 
Registered: Apr 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for the information. I am using Ubuntu 12.04 LTS.
 
Old 04-26-2017, 02:19 AM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,661
Blog Entries: 11

Rep: Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706Reputation: 3706
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!

Last edited by astrogeek; 04-26-2017 at 02:40 AM. Reason: Reworded to be more precise
 
Old 04-26-2017, 06:41 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
@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.)


-

Last edited by knudfl; 04-26-2017 at 07:12 AM.
 
1 members found this post helpful.
  


Reply

Tags
sumo, sumo-0260


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I have a error saying "undefined reference to...." in operator overload c++ code codex96 Programming 3 03-18-2016 02:05 AM
undefined reference to.... crapodino Programming 1 01-13-2008 07:05 PM
redirection < operator not working pls help Fond_of_Opensource Linux - Newbie 3 08-25-2006 02:35 AM
undefined reference to `operator new(unsigned)' drenal Linux - Software 0 01-26-2004 06:52 PM
g++ delete [] void pointer? ugenn Programming 5 06-01-2002 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration