I am a newbie in Oz, so be patient.
I have problem when importing OZ module, which imports native module.
For example:
- main program in file 'user.oz'
- OZ module in file 'mod.oz' (and compiled one in 'mod.ozf')
- native module in file 'modn.so-linux-i486'
User's code ('user.oz') imports 'mod.oz':
functor
import
MyMod at 'mod.ozf'
...
'mod.oz' imports native module in this way:
functor
import
MyNativeMod at 'modn.so{native}'
...
It doesn't work. When control reaches any point where functions from
native module should be accessed, then I get output:
%********************** Error: module manager *******************
%**
%** Could not link module
%**
%** Could not load native functor at
URL: file:///home/ololo/oz-ldap/modn.so
%**--------------------------------------------------------------
I made some investigations:
1. If I made 'mod.oz' stand-alone application (just without 'user.oz'),
then all works fine. Native module is imported.
2. If I import my native module directly from 'user.oz', then evrything is
all right, too.
So, i doesn't work in case in 2-level importing (importing module
importing native module).
Any suggests ? I need it to implement some library (so it is in OZ module)
that needs native support.
ololo@zeus.polsl.gliwice.pl asalwa@webcraft.pl oleks@helper.pl ICQ#:108588073
o---------------------------------------------------------------------------o
(C) 2001 All rights reversed
-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.