Hmmm. I'm still not convinced that there's nothing wrong with the extension.
Why is gibs able to compile without it but it fails when the extension is loaded?
Then again, the following descriptions may throw some light on it...
Hello,
You are talking about the "AMOSPro_Interpreter_Config" file which is located is S:
Yes. Make sure that the above named file is the same for both the editor and the compiler. The easiest way is to carefully copy it from "AMOSPro/S/" to "Compiler/s/". If you want to be safe rename "Compiler/s/AMOSPro_Interpreter_Config" to something else (e.g. "old_Interpreter_Config"), just incase something goes wrong.
I hope this helps. It is frustrating spending ages coding something and then finding that it won't compile.
The *_Config files work like this:
AMOSPro_Interpreter_Config | | This is the key config file for AMOS Pro. It's used by the Loader, Interpreter, Editor, Monitor and Compiler. You should only have one copy of this file and keep it in one of the following places: The Loader looks for it in each of those places in turn. The <Current Directory> is only really useful if you're playing around with different configs for different programs. But note that it looks in S: and S/ first, so you'd need to do some renaming to force that option. The best place IMHO is S:.
|
AMOSPro_Editor_Config | | Contains all the additional stuff the Editor and Monitor use. Mostly the Editor Commands, Editor Shortcut Keys, Accessory Program locations, User Menu, and all the text strings used in the editor. |
AMOSPro_Compiler_Config | | Contains all the texts strings used in the compiler (including the one that contains the flag characters for the compiler setup). |
The compiler first checks to see if the
AMOSPro_Interpreter_Config file is already loaded. If it's been called from the editor, it doesn't need to load the file. If not, it looks for its own config file in these locations and in this sequence:
which is the reverse of the sequence the Loader/Interpreter uses. That's why I think it's a bad idea to have the config files in more than one location
.
I haven't checked any further yet, but the strings it uses in the code to check the above locations are a bit strange:
- "AMOSPro_Compiler_Config" is <Current Directory>
- "S/" is a bit of a worry as there's no file name!
- "S:AMOSPro_Compiler_Config" is for the S: assigned directory.
I haven't fully pulled the compiler apart yet so I've no idea how it uses
AMOSPro_Interpreter_Config. But the
AMOSPro_Compiler_Config file references it as
"S:AMOSPro_Interpreter_Config" which is, presumably, where it expects to find it after it's loaded its own config file.
As to gibs problem:
If the compiler is picking up a different
AMOSPro_Interpreter_Config to the one used by the editor, and that file hasn't got the extension included, maybe that's the cause. The editor will run it okay, but the compiler won't know the extension exists and will throw up those errors.
Sorry to still be a bit vague on the compiler. I'll be up to my neck in the Loader/Interpreter/Editor bug fixes, docs and help files for a long while yet and can't afford to get too distracted...