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

Reply via email to