Menu

I can compile only one time

2016-12-23
2018-01-21
  • Salvador Rivera

    Salvador Rivera - 2016-12-23

    I am using the great cow basic version 0.96.00 2016-12-14
    I wrote a little program that turn on and off a led. The first time that i clicked on the HEX button, the hex file was created without problems, i burned my pic and it worked correctly, but when I tried to compile the second time the SynWrite showed me a window with the text

    *** makeHEX.bat ***

    Great Cow Basic Pre-processing (v0.96.00)

             include\\3pi.h
             include\\ADS7843.h
             include\\ALPS-EC11.h
             include\\chipino.h
             include\\DHT.h
             include\\DS1307.h
             include\\DS1337.h
             include\\DS1672.h
             include\\DS18B20.h
             include\\DS18s20.h
             include\\ds2482.h
             include\\DS3231.h
             include\\duemilanove.h
             include\\EMC1001.h
             include\\eracer.h
             include\\FRAM.h
             include\\glcd.h
             include\\glcd_ILI9340.h
             include\\glcd_ILI9341.h
             include\\glcd_ImagesandFonts_addin3.h
             include\\glcd_KS0108.h
             include\\glcd_PCD8544.h
             include\\glcd_SH1106.h
             include\\glcd_SSD1289.h
             include\\glcd_SSD1306.h
             include\\glcd_ST7735.h
             include\\glcd_ST7920.h
             include\\glcd_XXXXXX.h
             include\\heflash.h
             include\\HMC5883L.h
             include\\HWI2C_ISR_Handler.h
             include\\HWI2C_MessageInterface.h
             include\\I2CEEPROM.h
             include\\LCD2SerialRedirect.h
             include\\lego-pf.h
             include\\lego.h
             include\\maths.h
             include\\MAX6675.h
             include\\MCP23008.h
             include\\MCP23017.h
             include\\MCP4XXXDigitalPot.h
             include\\MCP7940N.h
             include\\mtask.h
             include\\mylcd.h
             include\\NunChuck.h
             include\\PCF8574.h
             include\\sd.h
             include\\songplay.h
             include\\SonyRemote.h
             include\\SRF02.h
             include\\srf04.h
             include\\TEA5767.h
             include\\template.h
             include\\trig2places.h
             include\\trig3places.h
             include\\trig4places.h
             include\\UNO_mega328p.h
             include\\utils.h
             include\\lowlevel\7segment.h
             include\\lowlevel\a-d.h
             include\\lowlevel\eeprom.h
             include\\lowlevel\hwi2c.h
             include\\lowlevel\hwi2c2.h
             include\\lowlevel\hwspi.h
             include\\lowlevel\i2c.h
             include\\lowlevel\keypad.h
             include\\lowlevel\lcd.h
             include\\lowlevel\ps2.h
             include\\lowlevel\pwm.h
             include\\lowlevel\random.h
             include\\lowlevel\remote.h
             include\\lowlevel\rs232.h
             include\\lowlevel\sound.h
             include\\lowlevel\stdbasic.h
             include\\lowlevel\string.h
             include\\lowlevel\system.h
             include\\lowlevel\timer.h
             include\\lowlevel\usart.h
    

    Exiting...

    After I clicked on "close" button, this text appear in the output window of SynWriter:

    22:41:00 G+Stool-COMPILE/ASSEMBLE, processing c:\GCB@Syn\G+Stools\makeHEX.bat
    Source-File = Z:\home\matematicas\Documents\Microcontroladores\Programas\GCBasic\prenderled.gcb
    12.4 Sec. <<< WARNINGs / ERRORs while compiling!
    Doubleclick on errormessage below to go to sourcecode-line:
    glcd_ST7920.h (198): Error: 2. Unbalanced Braces
    glcd_ST7920.h (201): Error: 2. Unbalanced Braces
    glcd_ST7920.h (204): Error: 2. Unbalanced Braces
    glcd_ST7920.h (213): Error: 2. Unbalanced Braces
    glcd_ST7920.h (216): Error: 2. Unbalanced Braces
    mylcd.h (92): Error: 2. Unbalanced Braces
    mylcd.h (452): Error: 2. Unbalanced Braces
    mylcd.h (471): Error: 2. Unbalanced Braces
    mylcd.h (478): Error: 2. Unbalanced Braces
    mylcd.h (481): Error: 2. Unbalanced Braces
    lcd.h (261): Error: 2. Unbalanced Braces
    lcd.h (274): Error: 2. Unbalanced Braces
    lcd.h (1494): Error: 2. Unbalanced Braces
    lcd.h (1502): Error: 2. Unbalanced Braces
    lcd.h (1572): Error: 2. Unbalanced Braces
    lcd.h (1602): Error: 2. Unbalanced Braces

    It always happens when I try to compile after the first time, I mean that it only compiles succesfully one time.

    The program is:

    chip 16F628A, 4

    config LVP=OFF

    Dir PORTB.3 OUT
    SET PORTB.3 ON
    WAIT 100 MS
    SET PORTB.3 OFF
    WAIT 100 MS

    I tried with other programs but they come with the same problem. I uninstall the great cow basic and installed it again and works only one time again.
    I am running the great cow basic under ubuntu 16.04 (elementary os loki).

    How can i solve this problem?

    Thanks for your help.

     
  • Anobium

    Anobium - 2016-12-23

    As a workaround please use the attached file.

    Install in your C:\GCB@Syn\G+Stools folder. Rename the existing file.

     

    Last edit: Anobium 2016-12-23
  • Salvador Rivera

    Salvador Rivera - 2016-12-23

    It works!
    Thank you very much for your prompt and accurate answer!!!!

     
  • Anobium

    Anobium - 2016-12-23

    This is an issue related to the command processor\emulator within Linux. This workaround simply does not inspect the source files prior to compiling.

     

Log in to post a comment.