ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Sapego <isap...@gridgain.com>
Subject Re: How to compile C++ code..
Date Tue, 20 Jun 2017 15:32:30 GMT

You need to exclude "/usr/bin/ld /usr/local/lib/libignite.so" part and add
-lignite-jni -lignite-binary
-lignite-common -L$(JAVA_HOME)/jre/lib/amd64/server -ljvm

Best Regards,

On Tue, Jun 20, 2017 at 3:35 PM, Rahul.S <rahul.s@tayana.in> wrote:

> Hi Ignite Team,
> I am intended to compile the c++ code that i have written (its is pretty
> much copy from the example of put-get with slight modifications..).
> I went through the "DEVNOTE.txt" in the "$IGNITE_HOME/platforms/cpp/".
> Completed all the steps as mentioned there (including "make install" as
> root).
> I can see the libraries and the includes in the "/usr/local/lib/"
> directory.
> There i found a hint as using flag "-lignite" in the g++ command to will
> include all the dependency for ignite.
> but i am getting an error for which i tried my best to but finally failed
> to
> resolve it, so requesting you people to help me in this.
> Here is the command that i am using to compile the c code that is in home
> directory:
> g++ -I /usr/java/jdk1.8.0_131/include/ -I
> /usr/java/jdk1.8.0_131/include/linux/ -I
> $IGNITE_HOME/platforms/cpp/jni/include/ -I
> $IGNITE_HOME/platforms/cpp/core/include/ -I
> $IGNITE_HOME/platforms/cpp/common/os/linux/include/ -I
> $IGNITE_HOME/platforms/cpp/examples/include/ DataGridTest.cc -o
> DataGridTest
> -ldl /usr/bin/ld /usr/local/lib/libignite.so -lignite
> for the above which i am getting an error as :
> /usr/bin/ld: /tmp/cciurNhQ.o: undefined reference to symbol
> '_ZN6ignite3jni4java12JniErrorInfoD1Ev'
> /usr/local/lib//libignite-jni- error adding symbols: DSO
> missing from command line
> collect2: error: ld returned 1 exit status
> Thanks in advance.....
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/How-to-compile-C-code-tp13989.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message