Question: how to call maple from C (and not get error messages)

The omexample.c file for calling Maple from C has no make file.

The READEME.txt file in the directory containing omexample.c suggests: "Refer to ?OpenMaple,Examples"

The result of  "?OpenMaple,Examples" does not seem to explicitly specify the required magic to make things work...  Following what appears to be intimated, I typed (to bash):

export MAPLE=/home/dpaddy/bin/maple12

export LD_LIBRARY_PATH=$MAPLE/bin.X86_64_LINUX

gcc -Wall -g -o stats stats.c  -lc -lm -I$MAPLE/extern/include -L$MAPLE/bin.X86_64_LINUX -lmaplec -lrt

 

My source is stats.c which, as for the maple part, is essentially omexample.c

I do not get a clean build; gcc complains "stats.c:95: warning: implicit declaration of function 'isspace'".

Neverhteless, typing ./stats manages to invoke the executable which runs and enters the read-execute loop as one would expect... All seems fine, until I try to do more than simple arithmetic by evaluating an integral.  I then am met with the error message "Error, (in ifactor/SmallFactors/ext) external library libmodLA.so could not be found/used".

Exiting the program and typing "env" (to bash) results in

.

.

.

LD_LIBRARY_PATH=/home/dpaddy/bin/maple12/bin.X86_64_LINUX

.

.

.

Moreover, typing "ls /home/dpaddy/bin/maple12/bin.X86_64_LINUX" (to bash) results in

.

.

.

libmodLA.so

.

.

.

O.K.... so, does anyone have a makefile for X86_64_LINUX which can produce a fully operational executable (which is able to use the dynamically linked libraries)?

Short of that, what magic is needed, and how (exactly) to I administer it to my linux box?
 

 

 

 

Please Wait...