Jump to content
Excelsior Forums

Recommended Posts

Hi,  This is a follow on from my Re-direction query, that's sort of solved.

I have tried to compile a simple Definition file but get an error on line1

the file "Menus.def" was used with Topspeed under DOS ., The only change is the

inclusion of -TOPSPEED+ at the beginning , without it there is a shed load of errors

But I cannot figure out why the e008 error on line 1,

Any help with this problem would be most welcome.


 

[dave@localhost xds]$ xc ./p0/def/Menus.def
XDS Modula-2 v2.40 [x86, v1.50] - build 10.05.2005
Compiling "./p0/def/Menus.def"

* [./p0/def/Menus.def 1.01 E008]
* expected symbol  "MODULE"
$-TOPSPEED+ DEFINITION MODULE Menus;
errors  1, no warnings, lines    1, time  0.00

[END CODE]

Line 1of the file  =   -TOPSPEED+ DEFINITION MODULE Menus;

 

E008

expected symbol %s (symbol)

The compiler expects the given symbol at the indicated position. The symbol may be one of the following:

     |       ;       :       .       [       ]       :=
     (       )       {       }       ,       =       ..
     DO      END     OF      THEN    TO      UNTIL   IMPORT
     MODULE

 

Dave P..

Share this post


Link to post
Share on other sites

Hi, it is recommended to turn on the "TOPSPEED" option on global level.
Please place "-toopspeed+" into your command line or project file and remove this option from definition module.

Other option to use ISO pragma syntax to turn on the "TOPSPEED" option inside definition module.
In your example it will

<* +TOPSPEED *>    
DEFINITION MODULE Menus;

With best regards,
Konstantin

Share this post


Link to post
Share on other sites

Hi, Many thanks for a clear and helpful  reply.

I have just tried  <* +TOPSPEED +>      DEFINITION MODULE Menus;

Checked and it works fine, 

I have only just started to use the compiler,  and have not used a Project file as I just wanted

to compile a simple Def Module to get going with it ,  one step at a time !.

Thanks again  Dave P..

 

 

 

                                

Share this post


Link to post
Share on other sites

Hi Dave,

May be you will be interested in the Eclipse-based Modula-2 IDE for XDS developers. It provides coding assistance for XDS Modula-2 on the Windows platform such as code completion, formatting and navigation (show usages / jump to definition).

It is open source project. You can download binaries and source code from GitHub
https://github.com/excelsior-oss/xds-ide/releases/tag/xds-ide-1.7.0

With best regards,
Konstantin

Share this post


Link to post
Share on other sites

Hi Lion.

Thanks for the Info,  unfortunately I am running Linux, so stuck in the 1980;s on the command line.

At present I am working on some library modules that I wrote way back, once these compile Ok then I can move on to a few programmes  written about the

same time,  I have compiled a couple of Def files Ok,  and am happy about an error in a .mod file, as it simply needs another .def file to be compiled first.

Then onto the next step,  building a programme, finding where it is,  and what it's called,  and running it.

I have a laptop with XP on it which I can take away with me  this has XDS installed, and opens with an editor,  so may do some work with it  while traveling,

So far I have found using the command line not as bad as I first thought, but a Linux IDE would be nice. anyway I have cleared a couple of problems and

feel a bit more confident using XDS.

Thanks again for the info   Dave P..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×