porting from linux to VxWorks - VxWorks

This is a discussion on porting from linux to VxWorks - VxWorks ; I am trying to port C++ application from linux to VxWorks.But ,it is showing errors in standard header files of VxWorks. e.g. stdint.h (it is there in target/usr/h/) line 28 : compiler out of sync .Probably missing ';' or } ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: porting from linux to VxWorks

  1. porting from linux to VxWorks

    I am trying to port C++ application from linux to VxWorks.But ,it is
    showing errors in standard header files of VxWorks.
    e.g. stdint.h (it is there in target/usr/h/)

    line 28 : compiler out of sync .Probably missing ';' or }
    line 28 : illegal function definition.
    line 31 : illegal storage class


  2. Re: porting from linux to VxWorks

    On Nov 29, 5:23 pm, Arjun Prasad wrote:
    > I am trying to port C++ application from linux to VxWorks.But ,it is
    > showing errors in standard header files of VxWorks.
    > e.g. stdint.h (it is there in target/usr/h/)
    >
    > line 28 : compiler out of sync .Probably missing ';' or }
    > line 28 : illegal function definition.
    > line 31 : illegal storage class


    like this ,in line no's 31,32,33,35,36,37,38,39.

  3. Re: porting from linux to VxWorks

    On Nov 29, 5:26 pm, Arjun Prasad wrote:
    > On Nov 29, 5:23 pm, Arjun Prasad wrote:
    >
    > > I am trying to port C++ application from linux to VxWorks.But ,it is
    > > showing errors in standard header files of VxWorks.
    > > e.g. stdint.h (it is there in target/usr/h/)

    >
    > > line 28 : compiler out of sync .Probably missing ';' or }
    > > line 28 : illegal function definition.
    > > line 31 : illegal storage class

    >
    > like this ,in line no's 31,32,33,35,36,37,38,39.


    Arjun,
    It will be better for us to help if you can give the whole error
    message and more information on what you are trying to port. The logs
    that you set is not good enough to trace the problem.

    ~
    Prathap
    Pivot Systems

  4. Re: porting from linux to VxWorks

    I, too, am receiving a "compiler out of sync" error message when
    compiling my downloadable kernel module in VxWorks 6.4. I am actually
    only getting this error when attempting to compile (not build, just
    compile) a particular source file. Here is the interesting bit.

    Given the beginning of the problem file (the name of the file is
    "Emace1553Prj_main.c":

    #include
    #include "../LibPrj/internal.h"
    #include "1553_tests.h"
    #include "Emace1553Prj.h"

    extern DEVICEINFO aDevices[MAX_NUM_OF_DEVICES];
    extern unsigned int aceEnumCardsCalled;
    extern unsigned int numAces;

    ....

    When I compile this file, I get the following out of sync message and
    error messages:

    "/usr/local/WindRiver/vxworks-6.4/target/h/arch/ppc/archPpc.h", line
    148: error (dcc:1173): compiler out of sync. Probably missing ';' or
    '}'
    "/usr/local/WindRiver/vxworks-6.4/target/h/arch/ppc/archPpc.h", line
    148: error (dcc:1056): illegal function definition
    "/usr/local/WindRiver/vxworks-6.4/target/h/arch/ppc/archPpc.h", line
    148: error (dcc:1082): illegal storage class
    "/usr/local/WindRiver/vxworks-6.4/target/h/arch/ppc/archPpc.h", line
    148: error (dcc:1117): identifier _RType not an argument
    "/usr/local/WindRiver/vxworks-6.4/target/h/arch/ppc/archPpcCommon.h",
    line 51: error (dcc:1082): illegal storage class
    "/usr/local/WindRiver/vxworks-6.4/target/h/arch/ppc/archPpcCommon.h",
    line 51: error (dcc:1117): identifier INSTR not an argument
    ....

    If I comment out all of the includes in "Emace1553Prj_main.c", the
    error messages become:

    "Emace1553Prj_main.c", line 25: error (dcc:1173): compiler out of
    sync. Probably missing ';' or '}'
    "Emace1553Prj_main.c", line 25: error (dcc:1056): illegal function
    definition
    "Emace1553Prj_main.c", line 25: error (dcc:1082): illegal storage
    class
    "Emace1553Prj_main.c", line 25: error (dcc:1117): identifier
    DEVICEINFO not an argument
    "Emace1553Prj_main.c", line 25: error (dcc:1633): parse error near
    'aDevices'
    "Emace1553Prj_main.c", line 26: error (dcc:1117): identifier
    aceEnumCardsCalled not an argument
    "Emace1553Prj_main.c", line 27: error (dcc:1117): identifier numAces
    not an argument
    ....

    I am using the DIAB compiler for PPC604 architecture.

    Any help would be greatly appreciated. Thanks.


+ Reply to Thread