Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.maple > #911

Re: Define External and libname

Date 2014-06-23 13:10 -0700
From "Thomas D. Dean" <tomdean@speakeasy.org>
Newsgroups comp.soft-sys.math.maple
Subject Re: Define External and libname
References <9ZednZnd5Ma6WjrOnZ2dnUVZ_o-dnZ2d@megapath.net> <6b2b1df0-e721-46d1-841d-0d9a9de06c52@googlegroups.com>
Message-ID <0OKdncspfcRdFDXOnZ2dnUVZ_uWdnZ2d@megapath.net> (permalink)

Show all headers | View raw


On 06/23/14 07:45, acer wrote:

> Your example with LIB="/home/tomdean/Math/Maple/lib/mymult.so"

That is why I qualified it.  I did not understand the maple ld path.

> You can also use,
>     "/home/tomdean/maple/toolbox/misc/lib"

 > mkdir -p ~/maple/toolbox/misc/lib
 > cp *.so ~/maple/toolbox/misc/lib

and start a new instance of maple.

 > domult:=define_external('mult',
 >                         LIB="mymult.so",
 >                         'a'::integer[4],
 >                         'b'::integer[4],
 >                         RETURN::integer[4]
 >                        );
domult := proc(a::integer[4], b::integer[4])
option call_external, define_external(mult, LIB = "mymult.so",
a::integer[4], b::integer[4], RETURN::integer[4]);
     call_external(Array(1..11, [...], datatype = integer[8], readonly),
     false, args)
end proc

Works.

Thanks,
Tom Dean

Back to comp.soft-sys.math.maple | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Define External and libname "Thomas D. Dean" <tomdean@speakeasy.org> - 2014-06-22 23:20 -0700
  Re: Define External and libname acer <maple@rogers.com> - 2014-06-23 07:45 -0700
    Re: Define External and libname "Thomas D. Dean" <tomdean@speakeasy.org> - 2014-06-23 13:10 -0700
      Re: Define External and libname acer <maple@rogers.com> - 2014-06-23 15:58 -0700
        Re: Define External and libname "Thomas D. Dean" <tomdean@speakeasy.org> - 2014-06-23 16:20 -0700

csiph-web