Results 1 to 1 of 1
'm new in this forum and trying to compile xml-xalan c++ on Ubuntu 9.10 ; I've installed gcc 4.4.2; I get no errors when launching 'make', but I've got the ...
- 11-01-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 1
Make Tests Error on Ubuntu 9.10 and Xml-Xalan
'm new in this forum and trying to compile xml-xalan c++ on Ubuntu 9.10 ; I've installed gcc 4.4.2; I get no errors when launching 'make', but I've got the following error when launching 'make tests'
Is there any solution?Code:make -C Tests tests make[1]: ingresso nella directory «/home/edoardo/Librerie/xml-xalan/c/Tests» mkdir -p ../lib mkdir -p ../bin g++ -O2 -DNDEBUG -fno-elide-constructors -Wall -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c -I/home/edoardo/Librerie/xml-xalan/c/src -I/home/edoardo/Librerie/xml-xalan/c/include -I../nls/include -I/home/edoardo/Librerie/xerces-c-3.0.1/src/ -I/home/edoardo/Librerie/xerces-c-3.0.1/include/xercesc -I/home/edoardo/Librerie/xerces-c-3.0.1/include/ -o ../obj/conf.o /home/edoardo/Librerie/xml-xalan/c/Tests/Conf/conf.cpp In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../include/c++/4.4.2/backward/strstream:46, from /home/edoardo/Librerie/xml-xalan/c/src/xalanc/Harness/XalanFileUtility.hpp:30, from /home/edoardo/Librerie/xml-xalan/c/Tests/Conf/conf.cpp:61: /usr/local/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../include/c++/4.4.2/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. /home/edoardo/Librerie/xml-xalan/c/Tests/Conf/conf.cpp: In function ‘int main(int, char**)’: /home/edoardo/Librerie/xml-xalan/c/Tests/Conf/conf.cpp:507: error: no matching function for call to ‘xercesc_3_0::XMLPlatformUtils::Initialize(const char [], int, int, xalanc_1_10::XalanDiagnosticMemoryManager*, bool)’ /home/edoardo/Librerie/xerces-c-3.0.1/src/xercesc/util/PlatformUtils.hpp:173: note: candidates are: static void xercesc_3_0::XMLPlatformUtils::Initialize(const char*, const char*, xercesc_3_0::PanicHandler*, xercesc_3_0::MemoryManager*) /home/edoardo/Librerie/xerces-c-3.0.1/src/xercesc/util/PlatformUtils.hpp:227: note: static void xercesc_3_0::XMLPlatformUtils::Initialize(XMLSize_t, XMLSize_t, XMLSize_t, const char*, const char*, xercesc_3_0::PanicHandler*, xercesc_3_0::MemoryManager*) make[1]: *** [../obj/conf.o] Errore 1 make[1]: uscita dalla directory «/home/edoardo/Librerie/xml-xalan/c/Tests» make: *** [tests] Errore 2
this is the code of conf.cpp in last lines just before 507
Code:int theResult = 0; try { XALAN_USING_XERCES(XMLPlatformUtils) XALAN_USING_XERCES(XMLUni) XalanMemoryManagerDefault theGlobalMemoryManager; XalanDiagnosticMemoryManager theDiagnosticMemoryManager(theGlobalMemoryManager, true, &cerr); XalanMemoryManagerDefault theTestingMemoryManager; // Call the static initializers for xerces and xalan, and create a transformer // XMLPlatformUtils::Initialize( XMLUni::fgXercescDefaultLocale, 0, 0, &theDiagnosticMemoryManager, true); XalanTransformer::initialize(theDiagnosticMemoryManager); theDiagnosticMemoryManager.lock(); { theResult = runTests(argc, argv, theTestingMemoryManager); } theDiagnosticMemoryManager.unlock(); XalanTransformer::terminate(); XMLPlatformUtils::Terminate(); XalanTransformer::ICUCleanUp(); } catch(...) { cerr << "Initialization failed!" << endl << endl; theResult = -1; } return theResult; }


Reply With Quote