John,

I have put some comments inline
On Sep 23, 2008, at 8:55 AM, John Sampson wrote:

Hello -

Many thanks. I cannot find any instructions how to compile or run a
program in Oz.

Compiation:

To create a module, or a library that will be linked with an application, use:

ozc -c file.oz

This will generate file.ozf

To create a standalone program, use

ozc -x file.oz

This will create a command line executable.

So for Queens.oz

        ozc -x Queens.oz

Make sure your PATH includes the Mozart bin directory:

On OS X Leopard it is at:
        /Applications/Mozart.app/Contents/Resources/bin
On Windows (Vista) the default location ist:
        C:\Program Files (x86)\Mozart\bin\

Hope that helps



I also tried to run a Queens demo where it can be clicked on from the
documentation.
There was a long error message but I could not copy or paste it.

I also found a 'compiler panel' and ran the file Queens.oz from the
menu there. Again
the error at line 25 came up. The error message had a line too long to
display in the
window, but full-sizing the window was greyed out.

I would be grateful for advice how to compile and run Queens.oz or a
reference to where in
the documentation the information is given. Or am I doing it right and
in fact there is
a bug in the code? I notice that there is also a file Queens.ozf in
the same folder -
am I right in assuming that this is byte-code? Can it be run?

Regards

_John Sampson_

On Fri, Sep 19, 2008 at 11:34 AM, Yves Jaradin
<[EMAIL PROTECTED]> wrote:
Raphael Collet a écrit :

Dear John,

This is a syntax error, and it probably has nothing to do with Tk. This error often reflects a misuse of the '$' notation. If you show us your code, we can certainly point out the mistake, and show you "the right
way"... ;-)

Cheers,
raph

The most common case is that the code you look at is intended to be compiled and you are trying to execute it interactively. This is the case if the code you are trying to use look like "functor import ... define ... end". If not, you can ignore this message. You could try to just keep the part after the define keyword (up to but not including the end keyword matching the functor
keyword).

Cheers,
Yves

On Fri, Sep 19, 2008 at 10:29 AM, John Sampson
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

  Hello -

I am testing to see whether Oz graphics (e.g. Tk) works on my machine.

I paste the code in Queens.oz into the Mozart programming interface
  and feed in the buffer (via the 'Oz' menu).

  An error is reported:

  %************************* expansion error **********************
  %**
  %** illegal use of nesting marker
  %**
  %** in file "Oz", line 25, column 0
  %** ------------------ rejected (1 error)

  What have I missed, or is there something wrong with Queens.oz?

  Regards

  _John Sampson_

_________________________________________________________________________________
  mozart-users mailing list
[email protected] <mailto:[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

_________________________________________________________________________________
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