 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] help! maple won't link external library
| [MUG] help! maple won't link external library |
|
Author: Richard Kaye
Posted: Wed, 11 Dec 2002 17:24:11 +0000
|
>> From: Richard Kaye "R.W.Kaye"
Hi,
I am suffering the error message
Error, external linking: ld.so.1: lks: fatal: mwrap_hello.so: open failed: No
such file or directory
given by Maple 6 when I run
test := define_external('hello', 'n'::integer[4], 'RETURN'::integer[4],
LIB="libtestprg.so");
The libtestprg.so has been compiled and is being read correctly from the
current directory, the types are correct. I'm running Maple 6 under
solaris.
When I check the current directory, maple's define_external function
has successfully written its wrapper code mwrap_hello.c and compiled it.
(The file mwrap_hello.so is sitting in the current directory ready for use.)
But unfortunately this is as far as it gets: maple seems unable to read this
file and spits out an error message saying it doesn't exist.
I am using Maple 6 as I want to integrate my work with a large
suite of maple code that might not work as advertized
without a re-write on a later version of maple. I've looked all over
for documentation, but can't see anything, nor anything I have done
wrong, or any notes of any environment variables to set or anything
like that.
Any ideas? I'd be most grateful if anyone could help!
Thanks
Richard Kaye
|
| [MUG] Re: help! maple won't link external library |
|
Author: Allan Wittkopf
Posted: Thu, 19 Dec 2002 10:05:51 -0800
|
>> From: Allan Wittkopf "awittkop"
Hello Richard,
I'm not certain this will do the trick, but you may need to have your
LD_LIBRARY_PATH set to include the current directory.
If this does not help, I'd suggest you a gzipped copy of your external library
to MUG so I can see if I can repeat the problem.
Could you also send the output of:
ldd mwrap_hello.so
for the wrapper built by Maple - just to verify that it is indeed linked to
libtestprg.so.
Sincerely,
Allan Wittkopf
> >> From: Richard Kaye "R.W.Kaye"
> I am suffering the error message
>
> Error, external linking: ld.so.1: lks: fatal: mwrap_hello.so: open failed: No
> such file or directory
>
> given by Maple 6 when I run
>
> test := define_external('hello', 'n'::integer[4], 'RETURN'::integer[4],
> LIB="libtestprg.so");
>
> The libtestprg.so has been compiled and is being read correctly from the
> current directory, the types are correct. I'm running Maple 6 under
> solaris.
>
> When I check the current directory, maple's define_external function
> has successfully written its wrapper code mwrap_hello.c and compiled it.
> (The file mwrap_hello.so is sitting in the current directory ready for use.)
> But unfortunately this is as far as it gets: maple seems unable to read this
> file and spits out an error message saying it doesn't exist.
>
> I am using Maple 6 as I want to integrate my work with a large
> suite of maple code that might not work as advertized
> without a re-write on a later version of maple. I've looked all over
> for documentation, but can't see anything, nor anything I have done
> wrong, or any notes of any environment variables to set or anything
> like that.
>
> Any ideas? I'd be most grateful if anyone could help!
>
> Thanks
>
> Richard Kaye
|
Previous by date: [MUG] Re: Integration problem, Maple User Group
Next by date: [MUG] Re: Curious simplification, Carl Devore
Previous thread: [MUG] system of differential equations :(, Eugene Makarov
Next thread: [MUG] Curious simplification, Greg Gamble
|
|
|