[
https://issues.apache.org/jira/browse/UIMA-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bhavani Iyer resolved UIMA-1321.
--------------------------------
Resolution: Unresolved
Fix Version/s: 2.4.0C
> UIMA C++ 2.2.2: compile error: call of overloaded 'addParam(XMLFileLoc)' is
> ambiguous
> -------------------------------------------------------------------------------------
>
> Key: UIMA-1321
> URL: https://issues.apache.org/jira/browse/UIMA-1321
> Project: UIMA
> Issue Type: Bug
> Components: C++ Framework
> Affects Versions: 2.3C
> Environment: Ubuntu Linux (kernel 2.6), Intel x86 32-bit, GNU G++
> 4.2.4
> Reporter: Jochen L. Leidner
> Priority: Minor
> Fix For: 2.4.0C
>
>
> Hi,
> I tried to compile the packaged release of the C++ implementation of the
> framework using GNU C++ 4 on Ubuntu Linux,
> and got the following error:
> In file included from ./uima/resmgr.hpp:54,
> from ./uima/importdescription.hpp:46,
> from ./uima/typesystemdescription.hpp:44,
> from ./uima/taespecifier.hpp:45,
> from ./uima/engine.hpp:48,
> from ./uima/annotator_context.hpp:48,
> from ../cas/xcasdeserializer_handler.cpp:54:
> ./uima/location.hpp: In constructor 'uima::util::Location::Location()':
> ./uima/location.hpp:140: warning: deprecated conversion from string constant
> to 'char*'
> ../cas/xcasdeserializer_handler.cpp: In member function 'virtual void
> uima::XCASDeserializerHandler::error(const xercesc_3_0::SAXParseException&)':
> ../cas/xcasdeserializer_handler.cpp:923: error: call of overloaded
> 'addParam(XMLFileLoc)' is ambiguous
> ./uima/exceptions.hpp:172: note: candidates are: void
> uima::ErrorMessage::addParam(const char*) <near match>
> ./uima/exceptions.hpp:174: note: void
> uima::ErrorMessage::addParam(const std::string&) <near match>
> ./uima/exceptions.hpp:176: note: void
> uima::ErrorMessage::addParam(const UChar*) <near match>
> ./uima/exceptions.hpp:178: note: void
> uima::ErrorMessage::addParam(const icu_4_0::UnicodeString&)
> ./uima/exceptions.hpp:182: note: void
> uima::ErrorMessage::addParam(long int)
> ./uima/exceptions.hpp:184: note: void
> uima::ErrorMessage::addParam(long unsigned int)
> ./uima/exceptions.hpp:186: note: void
> uima::ErrorMessage::addParam(int)
> ./uima/exceptions.hpp:188: note: void
> uima::ErrorMessage::addParam(unsigned int)
> ./uima/exceptions.hpp:190: note: void
> uima::ErrorMessage::addParam(double)
> ../cas/xcasdeserializer_handler.cpp:924: error: call of overloaded
> 'addParam(XMLFileLoc)' is ambiguous
> ./uima/exceptions.hpp:172: note: candidates are: void
> uima::ErrorMessage::addParam(const char*) <near match>
> ./uima/exceptions.hpp:174: note: void
> uima::ErrorMessage::addParam(const std::string&) <near match>
> ./uima/exceptions.hpp:176: note: void
> uima::ErrorMessage::addParam(const UChar*) <near match>
> ./uima/exceptions.hpp:178: note: void
> uima::ErrorMessage::addParam(const icu_4_0::UnicodeString&)
> ./uima/exceptions.hpp:182: note: void
> uima::ErrorMessage::addParam(long int)
> ./uima/exceptions.hpp:184: note: void
> uima::ErrorMessage::addParam(long unsigned int)
> ./uima/exceptions.hpp:186: note: void
> uima::ErrorMessage::addParam(int)
> ./uima/exceptions.hpp:188: note: void
> uima::ErrorMessage::addParam(unsigned int)
> ./uima/exceptions.hpp:190: note: void
> uima::ErrorMessage::addParam(double)
> [...]
> When commenting out all calls to msg.addParam() in the sources, the shared
> libraries build fine.
> Any ideas?
> Thanks,
> Jochen
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira