If you add the include to DaveDetector.cpp, it must be before
the include of uima/api.hpp. A better way to go would be to
put the include of <memory> into lowlevel_internal_indexes.hpp

Eddie


On Mon, Jul 19, 2010 at 3:01 AM, David García
<david.garc...@barcelonamedia.org> wrote:
>  Hi Eddie,
>
> I have tried adding "#include <memory>", but I've got the same error
> message.
>
> I've also tried using gcc version 4.3.4 and I've also got the same error.
>
> Regards,
> David
>
> El 16/07/2010 19:44, Eddie Epstein escribió:
>>
>> Hi David,
>>
>> More recent versions of g++ are always getting stricter.
>> Try adding
>> #include<memory>
>> to DaveDetector.cpp.
>>
>> A goal for uimacpp annotators is that they be portable, meaning that
>> the annotator code and any non-standard dependencies could be packaged
>> together, and installed anyplace on a target system. LD_LIBRARY_PATH
>> is very useful for this.
>>
>> The alternative is to install uimacpp and it's dependencies in some
>> standard system directory, but this would require root access.
>>
>> Regards,
>> Eddie
>>
>> On Thu, Jul 15, 2010 at 8:04 AM, David García
>> <david.garc...@barcelonamedia.org>  wrote:
>>>
>>>  Hi all,
>>>
>>> I am trying to use uimacpp, Linux version, but I have got problems making
>>> C++ examples.
>>> I follow README instructions, and when I do:
>>>
>>> make -f DaveDetector.mak
>>>
>>> I get following error:
>>>
>>> /uimacpp/include/uima/lowlevel_internal_indexes.hpp: In member function
>>> ‘virtual void
>>> uima::lowlevel::internal::CachedCompositeIndex<T>::clearAndFillCache()’:
>>> /uimacpp/include/uima/lowlevel_internal_indexes.hpp:348: error:
>>> ‘auto_ptr’
>>> was not declared in this scope
>>> /uimacpp/include/uima/lowlevel_internal_indexes.hpp:348: error: expected
>>> primary-expression before ‘>’ token
>>> /uimacpp/include/uima/lowlevel_internal_indexes.hpp:348: error: there are
>>> no
>>> arguments to ‘apit’ that depend on a template parameter, so a declaration
>>> of
>>> ‘apit’ must be available
>>> /uimacpp/include/uima/lowlevel_internal_indexes.hpp:348: note: (if you
>>> use
>>> ‘-fpermissive’, G++ will accept your code, but allowing the use of an
>>> undeclared name is deprecated)
>>> /uimacpp/include/uima/lowlevel_internal_indexes.hpp:349: error: ‘apit’
>>> was
>>> not declared in this scope
>>> make: *** [DaveDetector.o] Error 1
>>>
>>>
>>> I am using gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9).
>>>
>>>
>>> Am I doing something wrong?
>>> I have also found that it is not a good practise to use LD_LIBRARY_PATH
>>> env
>>> variable. Is this correct?
>>>
>>>
>>> Thanks in advanced,
>>>
>>> David
>>>
>

Reply via email to