uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Epstein <eaepst...@gmail.com>
Subject Re: [jira] Created: (UIMA-1321) UIMA C++ 2.2.2: compile error: call of overloaded 'addParam(XMLFileLoc)' is ambiguous
Date Sat, 11 Apr 2009 14:51:05 GMT
Hi Jochen,

Looks like the definition of XMLSSize_t is not what is expected. This
may be due to Xerces v3.0, we're currently working with v2.8, or
perhaps a different set of compiler definitions
(xercesc/util/Compilers) is being chosen under Ubuntu?

Another overloaded uima::ErrorMessage::addParam to cover the new
XMLSSize_t should fix the problem.

Eddie

On Thu, Apr 9, 2009 at 12:03 PM, Jochen L. Leidner (JIRA)
<uima-dev@incubator.apache.org> wrote:
> 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.2.2
>         Environment: Ubuntu Linux (kernel 2.6), Intel x86 32-bit, GNU G++ 4.2.4
>            Reporter: Jochen L. Leidner
>            Priority: Minor
>
>
> 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.
> -
> You can reply to this email to add a comment to the issue online.
>
>

Mime
View raw message