Dear Gautam,

for system functors like Browser you do not need to specify the path or functor file name, just specifying the functor as variable is fine. Also, for convenience you may only import some definitions of a functor and bind these to an new variable (as the variable Browse below).


functor

import
   %% only import variable Browse of functor Browser.   
   Browser(browse:Browse)

export
   <...>

define
   <...>
end


Best wishes,
Torsten

--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586219
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de





On 05.08.2010, at 16:17, Gautam Thaker wrote:

On 8/4/2010 10:04 PM, Gustavo A. Gómez Farhat wrote:
Dear Gautam.

On Wed, Aug 4, 2010 at 8:37 PM, Gautam Thaker<[email protected] > wrote:
I have a running oz script that I have developed and tested using the emacs based development env. Now, however, I have to create a "a.out" of this program so that it can be run w/o the emacs env. When I tried to do a compile I get various errors for unintroduced symbols/modules/ varibles. I can get rid of "Browse" from from script, but i need to be able to do
"System.show", use "FD.distribute" and be able to do "SearchOne".

ANy hints welcome.

You need to use the module import definition in your functor. You can
read about it at
http://www.mozart-oz.org/home/doc/apptut/node2.html#label3

The above was very helpful. I am now able to compile my .oz script as:
lake> ../mozart/bin/ozc -c ncr_test_1.oz  -o ncr_test_1.oza
but I can't find Browse.ozf
In fact, there are no .ozf files in the Mozart download I have been using for
some time (but always from the emacs development env..)

lake> ozengine ncr_test_1.oza

%********************** Error: module manager *******************
%**
%** Could not link module
%**
%** Could not load functor at URL: x-oz://system/Browse.ozf
%**--------------------------------------------------------------

How does one find the various system modules. I have tried w/ and w/o
'x-oz://system/Browse.ozf'

Gautam





Gautam


lake>  ../mozart/bin/ozc pgm_test_1.oz
Mozart Compiler 1.4.0 (20080704) playing Oz 3

%%% feeding file pgm_test_1.oz

%********************* binding analysis error *******************
%**
%** variable Browse not introduced
%**
%** in file "./pgm_test_1.oz", line 84, column 4

%********************* binding analysis error *******************
%**
%** variable FD not introduced
%**
%** in file "./pgm_test_1.oz", line 98, column 14

%********************* binding analysis error *******************
%**
%** variable System not introduced
%**
%** in file "./pgm_test_1.oz", line 113, column 1

%********************* binding analysis error *******************
%**
%** variable SearchOne not introduced
%**
%** in file "./pgm_test_1.oz", line 113, column 14
%** ------------------ rejected (4 errors)
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users





_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to