Re: [sdcc:discussion] My Project no longer compiles

Help
Patryk
2013-07-06
2013-07-17
  • Patryk

    Patryk - 2013-07-06

    Please check compiler settings in Silabs IDE - here's mine (based on Silabs
    guidelines):
    assembler: -plosgff
    compiler: -c --debug --use-stdout -V --std-sdcc99
    linker: --debug --use-stdout -V --iram-size 0x100 --xram-size
    0x0000 --code-size 0x2000
    Adapt xram and code sizes to your microcontroller.

    ----- Original Message -----
    From: "Muhsin" mo786@users.sf.net
    To: "[sdcc:discussion] " 1865@discussion.sdcc.p.re.sf.net
    Sent: Wednesday, July 03, 2013 3:47 PM
    Subject: [sdcc:discussion] My Project no longer compiles

    These are the other errors that come up

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\Comms.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\Comms.c"
      sdcpp.exe: fatal error: when writing output to : Invalid argument
      C:\Documents and Settings\muhsin\My Documents\test\/USB_CDC_UART.h:42:
      syntax error: token -> 'cs_Line_State_Update' ; column 31

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\config.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\config.c"
      sdcpp.exe: fatal error: when writing output to : No error
      C:\Documents and Settings\muhsin\My Documents\test\/Main.h:10: syntax
      error: token -> 'at' ; column 7

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\main.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\main.c"
      sdcpp.exe: fatal error: when writing output to : Invalid argument
      C:\Documents and Settings\muhsin\My Documents\test\/USB_Descriptor.h:222:
      syntax error: token -> 'DeviceDesc' ; column 41

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\Master.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\Master.c"
      C:\Documents and Settings\muhsin\My Documents\test\Master.c:136: error 20:
      Undefined identifier 'RELAY1'
      C:\Documents and Settings\muhsin\My Documents\test\Master.c:156: error 20:
      Undefined identifier 'RELAY2'

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\Uart.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\Uart.c"
      C:\Documents and Settings\muhsin\My Documents\test\Uart.c:22: syntax
      error: token -> 'Uart_New_Rx_Msg_Flag' ; column 31

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\USB.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\USB.c"
      sdcpp.exe: fatal error: when writing output to : Invalid argument
      C:\Documents and Settings\muhsin\My Documents\test\/USB_Descriptor.h:222:
      syntax error: token -> 'DeviceDesc' ; column 41

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_CDC_UART.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\USB_CDC_UART.c"
      sdcpp.exe: fatal error: when writing output to : Invalid argument
      C:\Documents and Settings\muhsin\My Documents\test\/USB_ISR.h:27: syntax
      error: token -> 'setup_handled' ; column 24

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_Class_Requests.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\USB_Class_Requests.c"
      C:\Documents and Settings\muhsin\My
      Documents\test\USB_Class_Requests.c:16:32: error: USB_Class_Requests.h: No
      such file or directory
      sdcpp.exe: fatal error: when writing output to : Invalid argument
      C:\Documents and Settings\muhsin\My Documents\test\/USB_Descriptor.h:222:
      syntax error: token -> 'DeviceDesc' ; column 41

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_Descriptor.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\USB_Descriptor.c"
      C:\Documents and Settings\muhsin\My Documents\test\/USB_Descriptor.h:222:
      syntax error: token -> 'DeviceDesc' ; column 41

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_ISR.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\USB_ISR.c"
      C:\Documents and Settings\muhsin\My Documents\test\USB_ISR.c:13:32: error:
      USB_Class_Requests.h: No such file or directory
      sdcpp.exe: fatal error: when writing output to : Invalid argument
      C:\Documents and Settings\muhsin\My Documents\test\/USB_CDC_UART.h:42:
      syntax error: token -> 'cs_Line_State_Update' ; column 31

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_Main.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\USB_Main.c"
      sdcpp.exe: fatal error: when writing output to : Invalid argument
      C:/SiLabs/MCU/Inc/C8051F340.h:42: syntax error: token -> 'P0' ; column 6

    Invoking project defined compiler.
    C:\Program
    Files\SDCC\bin\sdcc.exe -c --debug --use-stdout -V -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
    and Settings\muhsin\My Documents\test" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_Standard_Requests.c"

    • C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -I"C:\SiLabs\MCU\Inc" -I"C:\Documents
      and Settings\muhsin\My
      Documents\test" -obj-ext=.rel -DSDCC_MODEL_SMALL -DSDCC_MODEL_SMALL -DSDCC_FLOAT_REENT
      -DSDCC_FLOAT_REENT -DSDCC=3_3_1 -DSDCC=331 -DSDCC_REVISION=8733 -DSDCC_REVISION=8733
      -DSDCC_mcs51 -DSDCC_mcs51 -Dmcs51 -DSTDC_NO_COMPLEX -DSTDC_NO_THREADS
      -DSTDC_NO_ATOMICS -DSTDC_NO_VLA -isystem "C:\Program
      Files\SDCC\bin..\include\mcs51" -isystem "C:\Program
      Files\SDCC\bin..\include" "C:\Documents and Settings\muhsin\My
      Documents\test\USB_Standard_Requests.c"
      sdcpp.exe: fatal error: when writing output to : Invalid argument
      C:\Documents and Settings\muhsin\My Documents\test\/USB_Descriptor.h:222:
      syntax error: token -> 'DeviceDesc' ; column 41

    Link in progress...
    C:\Program
    iles\SDCC\bin\sdcc.exe --debug --use-stdout -V -I"C:\Documents and
    Settings\muhsin\My Documents\test" -o"C:\Documents and Settings\muhsin\My
    Documents\test\crypta_controller.hex" "C:\Documents and Settings\muhsin\My
    Documents\test\Comms.rel" "C:\Documents and Settings\muhsin\My
    Documents\test\config.rel" "C:\Documents and Settings\muhsin\My
    Documents\test\Control.rel" "C:\Documents and Settings\muhsin\My
    Documents\test\main.rel" "C:\Documents and Settings\muhsin\My
    Documents\test\Master.rel" "C:\Documents and Settings\muhsin\My
    Documents\test\Uart.rel" "C:\Documents and Settings\muhsin\My
    Documents\test\USB.rel" "C:\Documents and Settings\muhsin\My
    Documents\test\USB_CDC_UART.rel" "C:\Documents and Settings\muhsin\My
    Documents\test\USB_Class_Requests.rel" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_Descriptor.rel" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_ISR.rel" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_Main.rel" "C:\Documents and
    Settings\muhsin\My Documents\test\USB_Standard_Requests.rel"


    My Project no longer
    compiles


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/sdcc/discussion/1865/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     
  • Muhsin

    Muhsin - 2013-07-08

    Hi Patryk

    I did check all the settings and I am still getting the same error. Not sure what the cause of it. Previously it worked on my PC with the same settings. I am desperately trying to get this issue sorted out.

    PS: thanks for the response. Hope to hear from you soon and hopefully I can get the issues sorted out.

     
  • Raphael Neider

    Raphael Neider - 2013-07-08
    C:\Documents and Settings\muhsin\My Documents\test\/Main.h:10: syntax error: token -> 'at' ; column 7
    

    This looks to me like old-style sdcc-specific keywords such as "at", "bit", "sfr", "xdata", "pdata", ... are used. You probably need to replace them throughout your codebase with the double-underscore-prefixed versions __at, __bit, __sfr, __xdata. Otherwise, the compiler will misintepret

    int * code foo;
    

    using "code" as the identifier of the int* and foo as an invalid token (semicolon or backets expected).

    You could try to have the preprocessor do this for you by adding

    #define at   __at
    #define sfr  __sfr
    // ...
    

    for all sdcc-keywords in use in the project.
    As a quick hack, you could add them to the command line:

    -Dat=__at -Dsfr=__sfr [...]
    

    Hope that helps,
    Raphael

     
  • Muhsin

    Muhsin - 2013-07-09

    Hi Raphael

    I will give it a shot and let you know if it works.

    Thanks for the response.

     
  • Muhsin

    Muhsin - 2013-07-09

    Hi Raphael

    I checked and the keywords are defined as such in the compiler_defs.h file.

    define SEG_FAR __xdata

    define SEG_DATA __data

    define SEG_NEAR __data

    define SEG_IDATA __idata

    define SEG_XDATA __xdata

    define SEG_PDATA __pdata

    define SEG_CODE __code

    define SEG_BDATA __bdata

    define SBIT(name, addr, bit) sbit at(addr+bit) name

    define SFR(name, addr) sfr at(addr) name

    define SFRX(name, addr) xdata volatile unsigned char __at(addr) name

    define SFR16(name, addr) sfr16 at(((addr+1U)<<8) | addr) name

    define SFR16E(name, fulladdr) sfr16 at(fulladdr) name

    define SFR32(name, addr) sfr32 at(((addr+3UL)<<24) | ((addr+2UL)<<16) | ((addr+1UL)<<8) | addr) name

    define SFR32E(name, fulladdr) sfr32 at(fulladdr) name

    define INTERRUPT(name, vector) void name (void) interrupt (vector)

    define INTERRUPT_USING(name, vector, regnum) void name (void) interrupt (vector) using (regnum)

    define INTERRUPT_PROTO(name, vector) void name (void) interrupt (vector)

    define INTERRUPT_PROTO_USING(name, vector, regnum) void name (void) interrupt (vector) using (regnum)

    define FUNCTION_USING(name, return_value, parameter, regnum) return_value name (parameter) using (regnum)

    define FUNCTION_PROTO_USING(name, return_value, parameter, regnum) return_value name (parameter) using (regnum)

    // Note: Parameter must be either 'void' or include a variable type and name. (Ex: char temp_variable)

    define SEGMENT_VARIABLE(name, vartype, locsegment) locsegment vartype name

    define VARIABLE_SEGMENT_POINTER(name, vartype, targsegment) targsegment vartype * name

    define SEGMENT_VARIABLE_SEGMENT_POINTER(name, vartype, targsegment, locsegment) targsegment vartype * locsegment name

    define LOCATED_VARIABLE(name, vartype, locsegment, addr, init) locsegment at (addr) vartype name = init

    // used with UU16

    define LSB 0

    define MSB 1

    // used with UU32 (b0 is least-significant byte)

    define b0 0

    define b1 1

    define b2 2

    define b3 3

    typedef unsigned char U8;
    typedef unsigned int U16;
    typedef unsigned long U32;

    typedef signed char S8;
    typedef signed int S16;
    typedef signed long S32;

    typedef union UU16
    {
    U16 U16;
    S16 S16;
    U8 U8[2];
    S8 S8[2];
    } UU16;

    typedef union UU32
    {
    U32 U32;
    S32 S32;
    UU16 UU16[2];
    U16 U16[2];
    S16 S16[2];
    U8 U8[4];
    S8 S8[4];
    } UU32;

    // NOP () macro support

    define NOP() _asm NOP _endasm

     
  • Maarten Brock

    Maarten Brock - 2013-07-10

    That certainly looks outdated. Some do have the required double underscore and others don't.

     
  • Muhsin

    Muhsin - 2013-07-10

    Hi

    Thanks for the assistance. all the errors are gone after correcting the keywords. Now it tells me Output file not found. Any idea what is the cause of that?

     
  • Maarten Brock

    Maarten Brock - 2013-07-11

    Maybe you have to point it to the generated .omf file. Make sure you use sdcc for compiling and linking (not sdld) and that both use --debug.

     
  • Muhsin

    Muhsin - 2013-07-17

    Hi Maarten

    Thanks for the information. I actually had the correct files. Only problem was that I forgot to type the extension of the omf file in the target build configuration->absolute OMF file name (***.omf) So now it works thanks.

     

Log in to post a comment.