You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jochen L. Leidner (JIRA)" <ui...@incubator.apache.org> on 2009/04/09 18:03:13 UTC

[jira] Created: (UIMA-1321) UIMA C++ 2.2.2: compile error: call of overloaded 'addParam(XMLFileLoc)' is ambiguous

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.


Re: [jira] Created: (UIMA-1321) UIMA C++ 2.2.2: compile error: call of overloaded 'addParam(XMLFileLoc)' is ambiguous

Posted by Eddie Epstein <ea...@gmail.com>.
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)
<ui...@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.
>
>

[jira] Updated: (UIMA-1321) UIMA C++ 2.2.2: compile error: call of overloaded 'addParam(XMLFileLoc)' is ambiguous

Posted by "Eddie Epstein (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eddie Epstein updated UIMA-1321:
--------------------------------

    Affects Version/s:     (was: 2.2.2)
                       2.3

Pending more info, defer to a later release.

> 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.3
>         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.


[jira] Updated: (UIMA-1321) UIMA C++ 2.2.2: compile error: call of overloaded 'addParam(XMLFileLoc)' is ambiguous

Posted by "Eddie Epstein (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eddie Epstein updated UIMA-1321:
--------------------------------

    Affects Version/s:     (was: 2.3)
                       2.3C

> 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
>
> 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.


[jira] Commented: (UIMA-1321) UIMA C++ 2.2.2: compile error: call of overloaded 'addParam(XMLFileLoc)' is ambiguous

Posted by "Eddie Epstein (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698978#action_12698978 ] 

Eddie Epstein commented on UIMA-1321:
-------------------------------------

Hi Jochen,

In case you are not following the uima-dev mailing list, please see
http://markmail.org/message/izxn7ebpwzb3rsnt

Regards,
Eddie

> 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.