HPStack/Parser parser.h "incomplete element type"? - Hewlett Packard

This is a discussion on HPStack/Parser parser.h "incomplete element type"? - Hewlett Packard ; How do I set up HPStack and Parser to work with HPGCC? I put the .a files in lib directory, and the .h files in the include directory. When I try to compile my program from Programmers Notepad, I get: ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: HPStack/Parser parser.h "incomplete element type"?

  1. HPStack/Parser parser.h "incomplete element type"?

    How do I set up HPStack and Parser to work with HPGCC? I put the .a
    files in lib directory, and the .h files in the include directory.
    When I try to compile my program from Programmers Notepad, I get:

    arm-elf-gcc -mtune=arm920t -mcpu=arm920t -mlittle-endian -fomit-frame-
    pointer -msoft-float -Wall -Os -pipe -mthumb-interwork -mthumb -Ic:
    \HPGCC/include -I.. -c setdatas.c -o setdatas.o
    In file included from c:\HPGCC/include/hpstack.h:5,
    from setdatas.c:2:
    c:\HPGCC/include/parser.h:149: error: array type has incomplete
    element type
    c:\HPGCC/include/parser.h:160: error: array type has incomplete
    element type
    c:\HPGCC/include/parser.h:171: error: array type has incomplete
    element type
    c:\HPGCC/include/parser.h:182: error: array type has incomplete
    element type
    c:\HPGCC/include/parser.h:202: error: array type has incomplete
    element type
    c:\HPGCC/include/parser.h:212: error: array type has incomplete
    element type
    c:\HPGCC/include/parser.h:223: error: array type has incomplete
    element type
    c:\HPGCC/include/parser.h:234: error: array type has incomplete
    element type

    Do I need to change the makefile, and if so, how? Are there other
    pieces of HPStack/Parser I need to add to HPGCC?
    Thanks!


  2. Re: HPStack/Parser parser.h "incomplete element type"?

    Hi,

    Thanks for using (or trying to use ...) hpparser.
    You should download the last release of hpparser and hpstack from my
    website http://phsalmon.club.fr/phsalmon. If the problem subsists,
    please tell me.

    Moreover, for the linking phase, you need to modify the makefile in
    order to add libstack and libparser. You can do that by modifying the
    'Default_Makefile' provided under hpgcc :
    - after the list of libraries, add :
    LIBSTACK=stack
    LIBPARSER=parser
    - insert their reference at the beginning of the list within the
    declaration of LIBS variable :
    LIBS = -l$(LIBPARSER) -l$(LIBSTACK) ...

    Regards

    Philippe



    On 18 avr, 21:31, botsnli...@gmail.com wrote:
    > How do I set up HPStack and Parser to work with HPGCC? I put the .a
    > files in lib directory, and the .h files in the include directory.
    > When I try to compile my program from Programmers Notepad, I get:
    >
    > arm-elf-gcc -mtune=arm920t -mcpu=arm920t -mlittle-endian -fomit-frame-
    > pointer -msoft-float -Wall -Os -pipe -mthumb-interwork -mthumb -Ic:
    > \HPGCC/include -I.. -c setdatas.c -o setdatas.o
    > In file included from c:\HPGCC/include/hpstack.h:5,
    > from setdatas.c:2:
    > c:\HPGCC/include/parser.h:149: error: array type has incomplete
    > element type
    > c:\HPGCC/include/parser.h:160: error: array type has incomplete
    > element type
    > c:\HPGCC/include/parser.h:171: error: array type has incomplete
    > element type
    > c:\HPGCC/include/parser.h:182: error: array type has incomplete
    > element type
    > c:\HPGCC/include/parser.h:202: error: array type has incomplete
    > element type
    > c:\HPGCC/include/parser.h:212: error: array type has incomplete
    > element type
    > c:\HPGCC/include/parser.h:223: error: array type has incomplete
    > element type
    > c:\HPGCC/include/parser.h:234: error: array type has incomplete
    > element type
    >
    > Do I need to change the makefile, and if so, how? Are there other
    > pieces of HPStack/Parser I need to add to HPGCC?
    > Thanks!




  3. Re: HPStack/Parser parser.h "incomplete element type"?

    It works now. Thanks!
    Steven

    On Apr 18, 6:07 pm, Philippe Salmon wrote:
    > Hi,
    >
    > Thanks for using (or trying to use ...) hpparser.
    > You should download the last release of hpparser and hpstack from my
    > websitehttp://phsalmon.club.fr/phsalmon. If the problem subsists,
    > please tell me.
    >
    > Moreover, for the linking phase, you need to modify the makefile in
    > order to add libstack and libparser. You can do that by modifying the
    > 'Default_Makefile' provided under hpgcc :
    > - after the list of libraries, add :
    > LIBSTACK=stack
    > LIBPARSER=parser
    > - insert their reference at the beginning of the list within the
    > declaration of LIBS variable :
    > LIBS = -l$(LIBPARSER) -l$(LIBSTACK) ...
    >
    > Regards
    >
    > Philippe
    >
    > On 18 avr, 21:31, botsnli...@gmail.com wrote:
    >
    > > How do I set up HPStack and Parser to work with HPGCC? I put the .a
    > > files in lib directory, and the .h files in the include directory.
    > > When I try to compile my program from Programmers Notepad, I get:

    >
    > > arm-elf-gcc -mtune=arm920t -mcpu=arm920t -mlittle-endian -fomit-frame-
    > > pointer -msoft-float -Wall -Os -pipe -mthumb-interwork -mthumb -Ic:
    > > \HPGCC/include -I.. -c setdatas.c -o setdatas.o
    > > In file included from c:\HPGCC/include/hpstack.h:5,
    > > from setdatas.c:2:
    > > c:\HPGCC/include/parser.h:149: error: array type has incomplete
    > > element type
    > > c:\HPGCC/include/parser.h:160: error: array type has incomplete
    > > element type
    > > c:\HPGCC/include/parser.h:171: error: array type has incomplete
    > > element type
    > > c:\HPGCC/include/parser.h:182: error: array type has incomplete
    > > element type
    > > c:\HPGCC/include/parser.h:202: error: array type has incomplete
    > > element type
    > > c:\HPGCC/include/parser.h:212: error: array type has incomplete
    > > element type
    > > c:\HPGCC/include/parser.h:223: error: array type has incomplete
    > > element type
    > > c:\HPGCC/include/parser.h:234: error: array type has incomplete
    > > element type

    >
    > > Do I need to change the makefile, and if so, how? Are there other
    > > pieces of HPStack/Parser I need to add to HPGCC?
    > > Thanks!




  4. Re: HPStack/Parser parser.h "incomplete element type"?

    Hello,
    i have the same problem and made the changes you wrote to
    "Default_Makefile" but i still get the following error:

    "> "dmake" parsertest.hp
    arm-elf-gcc -mtune=arm920t -mcpu=arm920t -mlittle-endian -fomit-frame-
    pointer -msoft-float -Wall -Os -pipe -mthumb-interwork -mthumb -IC:
    \HPGCC-2.0-native-win32-SP2/include -I.. -c parsertest.c -o
    parsertest.o
    In file included from C:\HPGCC-2.0-native-win32-SP2/include/hpstack.h:
    5,
    from parsertest.c:2:
    C:\HPGCC-2.0-native-win32-SP2/include/parser.h:149: error: array type
    has incomplete element type
    C:\HPGCC-2.0-native-win32-SP2/include/parser.h:160: error: array type
    has incomplete element type
    C:\HPGCC-2.0-native-win32-SP2/include/parser.h:171: error: array type
    has incomplete element type
    C:\HPGCC-2.0-native-win32-SP2/include/parser.h:182: error: array type
    has incomplete element type
    C:\HPGCC-2.0-native-win32-SP2/include/parser.h:202: error: array type
    has incomplete element type
    C:\HPGCC-2.0-native-win32-SP2/include/parser.h:212: error: array type
    has incomplete element type
    C:\HPGCC-2.0-native-win32-SP2/include/parser.h:223: error: array type
    has incomplete element type
    C:\HPGCC-2.0-native-win32-SP2/include/parser.h:234: error: array type
    has incomplete element type
    parsertest.c: In function 'main':
    parsertest.c:29: error: type of formal parameter 1 is incomplete
    make: *** [parsertest.o] Error 1

    > Process Exit Code: 2
    > Time Taken: 00:00"


    The modified parts of "Default_Makefile" look like this:
    "...
    # enumerate libs ...
    # TODO: Thumb/ARM switch

    LIBDECNUMBER=decnumber
    LIBFSYSTEM=fsystem
    LIBGGL=ggl
    LIBHPLIB=hplib
    LIBHPG=hpg
    LIBGCC=gcc
    LIBSTACK=stack
    LIBPARSER=parser

    LIBS= -l$(LIBPARSER) -l$(LIBSTACK) -l$(LIBGGL) -l$(LIBHPLIB) -l$
    (LIBHPG) -l$(LIBHPLIB) -l$(LIBFSYSTEM) -l$(LIBHPLIB) -l$(LIBDECNUMBER)
    -l$(LIBHPLIB) -l$(LIBGCC)

    ELF2HP= elf2hp.exe
    ...."

    What have i done wrong, or what are possible solutions for my problem?

    Thanks,
    Max


  5. Re: HPStack/Parser parser.h "incomplete element type"?

    Hi,

    You need also to download the last package from my website, it should
    solve the problem. Take care that 'parser.h' has been renamed in
    'hpparser.h'.

    Regards

    Philippe

    On 22 avr, 16:57, "Mgo...@glemail.com" wrote:
    > Hello,
    > i have the same problem and made the changes you wrote to
    > "Default_Makefile" but i still get the following error:
    >
    > "> "dmake" parsertest.hp
    > arm-elf-gcc -mtune=arm920t -mcpu=arm920t -mlittle-endian -fomit-frame-
    > pointer -msoft-float -Wall -Os -pipe -mthumb-interwork -mthumb -IC:
    > \HPGCC-2.0-native-win32-SP2/include -I.. -c parsertest.c -o
    > parsertest.o
    > In file included from C:\HPGCC-2.0-native-win32-SP2/include/hpstack.h:
    > 5,
    > from parsertest.c:2:
    > C:\HPGCC-2.0-native-win32-SP2/include/parser.h:149: error: array type
    > has incomplete element type
    > C:\HPGCC-2.0-native-win32-SP2/include/parser.h:160: error: array type
    > has incomplete element type
    > C:\HPGCC-2.0-native-win32-SP2/include/parser.h:171: error: array type
    > has incomplete element type
    > C:\HPGCC-2.0-native-win32-SP2/include/parser.h:182: error: array type
    > has incomplete element type
    > C:\HPGCC-2.0-native-win32-SP2/include/parser.h:202: error: array type
    > has incomplete element type
    > C:\HPGCC-2.0-native-win32-SP2/include/parser.h:212: error: array type
    > has incomplete element type
    > C:\HPGCC-2.0-native-win32-SP2/include/parser.h:223: error: array type
    > has incomplete element type
    > C:\HPGCC-2.0-native-win32-SP2/include/parser.h:234: error: array type
    > has incomplete element type
    > parsertest.c: In function 'main':
    > parsertest.c:29: error: type of formal parameter 1 is incomplete
    > make: *** [parsertest.o] Error 1
    >
    > > Process Exit Code: 2
    > > Time Taken: 00:00"

    >
    > The modified parts of "Default_Makefile" look like this:
    > "...
    > # enumerate libs ...
    > # TODO: Thumb/ARM switch
    >
    > LIBDECNUMBER=decnumber
    > LIBFSYSTEM=fsystem
    > LIBGGL=ggl
    > LIBHPLIB=hplib
    > LIBHPG=hpg
    > LIBGCC=gcc
    > LIBSTACK=stack
    > LIBPARSER=parser
    >
    > LIBS= -l$(LIBPARSER) -l$(LIBSTACK) -l$(LIBGGL) -l$(LIBHPLIB) -l$
    > (LIBHPG) -l$(LIBHPLIB) -l$(LIBFSYSTEM) -l$(LIBHPLIB) -l$(LIBDECNUMBER)
    > -l$(LIBHPLIB) -l$(LIBGCC)
    >
    > ELF2HP= elf2hp.exe
    > ..."
    >
    > What have i done wrong, or what are possible solutions for my problem?
    >
    > Thanks,
    > Max




+ Reply to Thread