ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Sapego <isap...@gridgain.com>
Subject Re: C++ API can't build successfully in my linux environment
Date Mon, 14 Nov 2016 15:28:53 GMT
Can you try master? I'm pretty sure I was fixing these issues.

Best Regards,
Igor

On Mon, Nov 14, 2016 at 6:19 PM, smile <hongliping7@qq.com> wrote:

> I used ignite1.7.0
> ------------------ 原始邮件 ------------------
> *发件人:* "Igor Sapego"<isapego@gridgain.com>
> *发送时间:* 2016年11月14日(星期一) 晚上10:09
> *收件人:* "user"<user@ignite.apache.org>;
> *主题:* Re: C++ API can't build successfully in my linux environment
> Hi,
>
> Which version do you use?
>
> Best Regards,
> Igor
>
> On Mon, Nov 14, 2016 at 4:59 PM, smile <hongliping7@qq.com> wrote:
>
>> Hi, all
>>     I build C++ api in linux environment, linux is Center OS, and g++
>> version is 4.4.6, I get a lot build error,  and I have to modify the code,
>> include :
>>
>> 1、ignite_error.h : ~IgniteError();  改为 ~IgniteError() throw();
>>
>> 2、ignite_error.cpp :  IgniteError::~IgniteError()修改为IgniteError::~IgniteError()
>> throw();
>>
>> 3、将java.cpp中的nullPtr修改为NULL
>>
>> 4、将concurrent.h中的explicit SharedPointer(T* ptr)修改为:
>>
>>     explicit SharedPointer(T* ptr)
>>
>>                 {
>>
>>                     /*
>>
>>                     if (ptr)
>>
>>                     {
>>
>>                         impl = new SharedPointerImpl(ptr,
>> reinterpret_cast<SharedPointerImpl::DeleterType>(&SharedPoin
>> terDefaultDeleter<T>));
>>
>>                         ImplEnableShared(ptr, impl);
>>
>>                     }
>>
>>                     else
>>
>>                         impl = 0;
>>
>>                         */
>>
>>                     SharedPointer(ptr, &SharedPointerDefaultDeleter<T>);
>>
>>                 }
>>
>>    否则,将报如下的错误信息:
>>
>> *   ../common/include/ignite/common/concurrent.h: In constructor
>> 'ignite::common::concurrent::SharedPointer<T>::SharedPointer(T*) [with T =
>> ignite::impl::cache::CacheImpl]':*
>>
>> *../core/include/ignite/cache/cache.h:71:   instantiated from
>> 'ignite::cache::Cache<K, V>::Cache(ignite::impl::cache::CacheImpl*) [with K
>> = int, V = int]'*
>>
>> *../core/include/ignite/ignite.h:133:   instantiated from
>> 'ignite::cache::Cache<K, V> ignite::Ignite::GetOrCreateCache(const char*,
>> ignite::IgniteError*) [with K = int, V = int]'*
>>
>> *../core/include/ignite/ignite.h:112:   instantiated from
>> 'ignite::cache::Cache<K, V> ignite::Ignite::GetOrCreateCache(const char*)
>> [with K = int, V = int]'*
>>
>> *src/ignite.cpp:207:   instantiated from here*
>>
>> *../common/include/ignite/common/concurrent.h:145: error: address of
>> overloaded function with no contextual type information*
>>
>>
>> *  ok,  I have modifty them, then it can build success, but when I run
>> the example,  it is core dump, and I think that the memory is modified
>> during process running.*
>>
>>
>> * How can I solve it ?*
>>
>>  Thank you very much!
>>
>
>

Mime
View raw message