I am tryiing to build gsl-java on a Fedora Core 3 system, with gsl (1.6), ant (1.6.2), GCC (3.4.3) and velocity (1.4). The error message is given below.
thanks,
bkli
[cpp-compile] 1 total files to be compiled.
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c: In member function `int JNUCallbackFrame::acquire()':
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c:138: error: `string' undeclared (first use this function)
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c:138: error: (Each undeclared identifier is reported only once for each function it appears in.)
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c:138: error: expected `;' before "FIELDdtor"
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c:139: error: `FIELDdtor' undeclared (first use this function)
BUILD FAILED
/opt/gsl-java-1.3-0.6/build.xml:121: The following error occurred while executing this line:
/opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/build.xml:32: g++ failed with return code 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The current version of gsl-java was compiled w/gcc 2.9.x
and did not incur the problem you are having. The next
release will be compiled w/3.x.x and the presence of the
library will be listed as a requirement.
Hope this helps - pls let me know either way.
/mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am tryiing to build gsl-java on a Fedora Core 3 system, with gsl (1.6), ant (1.6.2), GCC (3.4.3) and velocity (1.4). The error message is given below.
thanks,
bkli
[cpp-compile] 1 total files to be compiled.
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c: In member function `int JNUCallbackFrame::acquire()':
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c:138: error: `string' undeclared (first use this function)
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c:138: error: (Each undeclared identifier is reported only once for each function it appears in.)
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c:138: error: expected `;' before "FIELDdtor"
[cpp-compile] /opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/JNUCallbackFrame.c:139: error: `FIELDdtor' undeclared (first use this function)
BUILD FAILED
/opt/gsl-java-1.3-0.6/build.xml:121: The following error occurred while executing this line:
/opt/gsl-java-1.3-0.6/src/com/asi/gnu/callbacks/build.xml:32: g++ failed with return code 1
The "string" type is a C++ STL type. Most likely you need
to install "libstdc++5-dev" for gcc/g++ 3.x.x.
I refer you to following post and replies where someone
has the same problem.
http://lists.debian.org/debian-user/2003/04/msg02343.html
The current version of gsl-java was compiled w/gcc 2.9.x
and did not incur the problem you are having. The next
release will be compiled w/3.x.x and the presence of the
library will be listed as a requirement.
Hope this helps - pls let me know either way.
/mark