Hi, Igor Sapego: using the latest ignite that you gave yesterday, it build report error as follow:
(1) make[3]: Entering directory `/data/smilehong/apache-ignite-1.7.0-src/modules/platforms/cpp/jni' CXX os/linux/src/utils.lo CXX src/java.lo src/java.cpp: In function 'void ignite::jni::java::JniConsoleWrite(JNIEnv*, _jclass*, _jstring*, jboolean)': src/java.cpp:1910: error: 'nullptr' was not declared in this scope ??2??/usr/local/share/automake-1.14/am/depend2.am: error: am__fastdepCXX does not appear in AM_CONDITIONAL /usr/local/share/automake-1.14/am/depend2.am: The usual way to define 'am__fastdepCXX' is to add 'AC_PROG_CXX' /usr/local/share/automake-1.14/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again binary/Makefile.am: error: C++ source seen but 'CXX' is undefined binary/Makefile.am: The usual way to define 'CXX' is to add 'AC_PROG_CXX' binary/Makefile.am: to 'configure.ac' and run 'autoconf' again. common/Makefile.am: error: C++ source seen but 'CXX' is undefined common/Makefile.am: The usual way to define 'CXX' is to add 'AC_PROG_CXX' common/Makefile.am: to 'configure.ac' and run 'autoconf' again. core/Makefile.am: error: C++ source seen but 'CXX' is undefined core/Makefile.am: The usual way to define 'CXX' is to add 'AC_PROG_CXX' core/Makefile.am: to 'configure.ac' and run 'autoconf' again. ignite/Makefile.am: error: C++ source seen but 'CXX' is undefined ignite/Makefile.am: The usual way to define 'CXX' is to add 'AC_PROG_CXX' ignite/Makefile.am: to 'configure.ac' and run 'autoconf' again. jni/Makefile.am: error: C++ source seen but 'CXX' is undefined jni/Makefile.am: The usual way to define 'CXX' is to add 'AC_PROG_CXX' jni/Makefile.am: to 'configure.ac' and run 'autoconf' again. odbc/Makefile.am: error: C++ source seen but 'CXX' is undefined odbc/Makefile.am: The usual way to define 'CXX' is to add 'AC_PROG_CXX' odbc/Makefile.am: to 'configure.ac' and run 'autoconf' again. when I have repair them, it can build success, and run normally, thank you for your help! ------------------ ???????? ------------------ ??????: "smile";<honglipi...@qq.com>; ????????: 2016??11??14??(??????) ????11:55 ??????: "user"<user@ignite.apache.org>; ????: ?????? C++ API can't build successfully in my linux environment Thank you for your answer, and I download ignite from this link: http://ignite.apache.org/download.cgi#sources and download the ignite1.7.0, which realse on 2016-08-05; And I will try the link that you gived to for the latest ignite, then I will feedback when I have tried it! Thanks again! ------------------ ???????? ------------------ ??????: "Igor Sapego";<isap...@gridgain.com>; ????????: 2016??11??14??(??????) ????11:41 ??????: "user"<user@ignite.apache.org>; ????: Re: C++ API can't build successfully in my linux environment Here is the link: https://builds.apache.org/view/H-L/view/Ignite/job/Ignite-nightly/lastSuccessfulBuild/ Best Regards, Igor On Mon, Nov 14, 2016 at 6:41 PM, Igor Sapego <isap...@gridgain.com> wrote: Or you can try nightly build if you need binaries: Best Regards, Igor On Mon, Nov 14, 2016 at 6:28 PM, Igor Sapego <isap...@gridgain.com> wrote: 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 <honglipi...@qq.com> wrote: I used ignite1.7.0------------------ ???????? ------------------ ??????: "Igor Sapego"<isap...@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 <honglipi...@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>(&SharedPointerDefaultDeleter<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!