1. Error

Dit is een meerdelig bericht in MIME-indeling.

------=_NextPart_000_000A_01BD92FC.EEFB4360
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi everbody

I have started to try and understand the Euphoria programming language, =
and I have made some changes in an example program from the tutorial.
It works when I open it under DOS with the ex command, bit I would like =
it to open under Windows also. When I try to open it under Windows I get =
the following error

D:\EUPHORIA\EIGENO~1\TEST1\TEST1.EXE:378
BM has not been declared
BM BN
   ^
What does it mean? And how can I resolve it?

Thanks
Brigitte

------=_NextPart_000_000A_01BD92FC.EEFB4360
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Hi =
everbody</FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have started to try and understand =
the Euphoria=20
programming language, and I have made some changes in an example program =
from=20
the tutorial.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>It works when I open it under DOS with =
the ex=20
command, bit I would like it to open under Windows also. When I try to =
open it=20
under Windows I get the following error</FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial=20
size=3D2>D:\EUPHORIA\EIGENO~1\TEST1\TEST1.EXE:378<BR>BM has not been=20
declared<BR>BM BN</FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>&nbsp;&nbsp; =
^</FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>What does it mean? And =
how can I=20
resolve it?</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial =

------=_NextPart_000_000A_01BD92FC.EEFB4360--

new topic     » topic index » view message » categorize

2. Re: Error

>D:\EUPHORIA\EIGENO~1\TEST1\TEST1.EXE:378
>BM has not been declared
>BM BN
>   ^
>What does it mean? And how can I resolve it?

Well it means the identifer BM is unknown to Ex.exe
In other words, you need to declare it first.
Remember, that Euphoria is case sensitive, it does not consider 'BM' to be
the same as 'bm', 'Bm' or 'bM'

However, it is kind of hard to resolve such a problem without at least
showing us, the line that caused the error.

Good luck..

Ralf

new topic     » goto parent     » topic index » view message » categorize

3. Re: Error

Brigitte wrote:

>>D:\EUPHORIA\EIGENO~1\TEST1\TEST1.EXE:378
>>BM has not been declared
>>BM BN=20
>>   ^=20
>>What does it mean? And how can I resolve it?

Well, you obviously have an error in your program, and Euphoria is =
trying to show you where the problem is.=20
To see the error, look at line 378 in your TEST1.EX file.

You are seeing "weird" stuff because you are running an EXE file, not an =
EX program. An EXE file is a bound EX file.

When you BIND a program into an EXE, Euphoria "condenses" is down, =
converting all your nice your function and variable names into 2 byte =
codes such as "AD" and "QY". So when it tries to show you the error, you =
get something fairly unreadable. This is a good thing, because you =
typically don't want to distribute your EXE file and have people see =
your code. From a testing standpoint, however, this is a bad thing.

For testing purposes, it's easier to wait until the program is fully =
debugged before binding it, running it from the command line as:

   EX TEST1.EX

or the IDE (such as ED). Then, once you are sure you have the bugs out, =
and don't need to see the names of your functions and variables, you can =
bind the program.

Another option is to use the -FULL_KEYWORDS flag when binding your file, =
such as:

   BIND TEST1 -FULL_KEYWORDS

I *think* this will bind your program, and leave the functions and =
variables with their original names, so they will give useful error =
messages. Of course, it's much easier for someone to read the source =
code in your EXE if you do that.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

4. Re: Error

At 04:46 PM 6/8/98 +0200, Brigitte wrote:

>I have started to try and understand the Euphoria programming language, =
>and I have made some changes in an example program from the tutorial.
>It works when I open it under DOS with the ex command, bit I would like =
>it to open under Windows also. When I try to open it under Windows I get =
>the following error
>
>D:\EUPHORIA\EIGENO~1\TEST1\TEST1.EXE:378
>BM has not been declared
>BM BN
>   ^
>What does it mean? And how can I resolve it?
>
>Thanks
>Brigitte
>
A question: you say your program runs when you run it in DOS
using the ex command (ex test1 - correct?)
That means you are running Euphoria (ex.exe) and loading your
source file (test1.ex).
When you run in Windows, you are running a file named test1.exe.
These are two completely different things - perhaps two different
programs.

It would be best, using Windows, to run "ex test1" and see
what happens.

As Dave Cuny said, it is not a good idea to "bind" (compile)
a program until it is completely finished and debugged.

Further questions are welcome.
If you wish, e-mail your code to me, I'll look for the problem.

Regards,

Irv

visit my Euphoria Programming website:
http://www.mindspring.com/~mountains

new topic     » goto parent     » topic index » view message » categorize

5. Re: Error

Hi everybody,

I want to thank you all for trying to help me.
The problem, whatever is was is solved. I have removed the test en tried
again, and I made sure to get all the bugs out before binding it.
It works perfectly now.

Brigitte

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu