Hi, Bill.

Thanks a lot. It is perfect.

I have already tried '_bar', but not 'bar_'.  'bar_' works properly.

Thanks again.

Best regards.

Toshinari Kamakura

On 2007/04/11, at 15:08, bill lam wrote:

On 2007/04/11, at 15:02, bill lam wrote:

cder gave 2 0 meaning that the symbol cannot be found inside the bar.so, most probably the fortran compiler mangled the function name 'bar' to '_bar' or 'bar_', consult your compiler's documentation for exact the name mangling scheme. J itself knows nothing about name mangling.

BTW 0+>:i.10 or even 0.0+>:i.10 cannot coerce integers to doubles, but (0.5-0.5)+>:i.10 is ok, there are other variations too.
try
'/Users/kamakura/work/corf/bar.so _bar n *i *d'& cd (;~ ,@#) }: 0.5,~ >:i.10
  or
'/Users/kamakura/work/corf/bar.so bar_ n *i *d'& cd (,@# ; ]) }: 0.5,~ >:i.10

In linux or mac, there is only one calling convection so that the '+' after the function name is not required or recommended.

--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to