Hi !
I have been trying to install IMSL Computational Tool Kit on a server.
It is a Lunix Redhat V.4 with Intel pentium d processor and Intel fortran compiler 8.1 and the type of command shell we run is bash.
I dont know if the problem is with the Installation or the Lunix system.
I have gone through the entire process of Installation
as it is in the instructions give on the website:
http://www.vni.com/tech/imsl/getting...st_c_unix.html
The license server is up fine but once i run this C file :
/* Program start */
/* The header file for Mathematics of the IMSL C Library. */
/* For Statistics, use <imsl.h>>. */
#include <imsl.h>
main()
{
/* variable declaration */
int n = 3;
float *x;
static float a [ ] = {33.0, 16.0, 72.0,
-24.0, -10.0, -57.0,
18.0, -11.0, 7.0};
static float b [ ] = {129.0, -96.0, 8.5};
float *p_inva;
/* The main IMSL function call to solve for x in Ax=B.
* This is the floating point version, to use
* double-precision arguments, call
* imsl_d_lin_sol_gen */
x = imsl_f_lin_sol_gen(n, a, b, 0);
/* Optional arguments are included after required
* arguments. These are usually preceded by a constant
* named IMSL_* indicating which optional argument is
* being passed. In this example, we request the
* inverse of the a matrix */
x = imsl_f_lin_sol_gen(n, a , b,IMSL_INVERSE, &p_inva,0);
/* Print the solution x and the inverse of a using
* write_matrix, a printing utility */
imsl_f_write_matrix("Solution x", 1, n, x, 0);
imsl_f_write_matrix("Inverse of A", n, n, p_inva, 0);
}
/* Program end */
I get this error:
cnl.c:4:19: imsl.h: No such file or directory
cnl.c: In function 'main':
cnl.c:21:warning: assignment makes pointer from integer without a cast
cnl.c:30: error: 'IMSL_INVERSE' undeclared (first use in this function)
cnl.c:30: error: (Each undeclared identifier is reported only once for each function it appears in.)
cnl.c:30: warning: assignment makes pointer fron integer without a cast
**********************************************
Then if i give the entire path # include</usr/...../imsl.h> in the same code above I get :
/tmp/ccnedUdh.o(.text+0x27): In function 'main':
: undefined reference to 'imsl_f_lin_sol_gen'
/tmp/ccnedUdh.o(.text+0x54): In function 'main':
: undefined reference to 'imsl_f_lin_sol_gen'
/tmp/ccnedUdh.o(.text+0x79): In function 'main':
: undefined reference to 'imsl_f_write_matrix'
/tmp/ccnedUdh.o(.text+0x98): In function 'main':
: undefined reference to 'imsl_f_write_matrix'
collect2: ld returned l exit status
I Cant figure out whats wrong !!
Thank you.
dsmv.