Menu

When a gcbasic program compiles ok! then

Help
2008-02-24
2013-05-30
  • Nobody/Anonymous

    When a GCBASIC program compiles well then this message appears: "Error: Could not start the external assembler"
    My line of command is: c:\Archivos de Programa/gcbasic/A:GCASM AnyFile.bas. Please tell me why this happens.
    I am using the last update of GCBASIC archives. Thanks in advance for your attention. PCS

     
    • Hugh Considine

      Hugh Considine - 2008-02-27

      When altering the command line processing code, I introduced a bug which causes GCBASIC to generate an error saying it cannot start the external assembler if there is no assembler specified at the command line, or if it cannot understand the assembler specified. I've since fixed this, but am reluctant to upload the update.zip file as it is getting quite big and the bug is easy to work around.

      What is happening here is that GCBASIC isn't recognising the assembler parameter you've supplied - if you're using GCASM, try this command line:
      "C:\Archivos de Programa\GCBASIC\GCBASIC" /A:GCASM AnyFile.bas

      If you don't want GCBASIC to assemble the program, just create an empty .bat file for GCBASIC to call, and specify that as the assembler.

      I'm trying to move GCBASIC away from using the command line for parameters. In the latest update, you can create a file in the same folder as gcbasic.exe called gcbasic.ini, and GCBASIC will read the file to get parameters such as the assembler. There is an example, "sample gcbasic.ini" included in the latest update.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.