[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] C compilation error
From: |
Keisuke Nishida |
Subject: |
Re: [open-cobol-list] C compilation error |
Date: |
Sun Feb 15 17:01:40 2004 |
User-agent: |
Wanderlust/2.10.0 (Venus) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (UnebigoryĆmae) APEL/10.3 Emacs/21.2 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI) |
At Fri, 13 Feb 2004 11:39:42 +0100,
address@hidden wrote:
>
> I checked out open-cobol yesterday evening from cvs.
>
> ./configure ->done
> make -> done
> make install ->done
>
> then I tried to compile my cobol source but I get always a lot of "invalid
> lvalue in unary `&' " errors.
>
> running the testsuite fails with the same error message (log attached).
>
> Any idea what I'm doing wrong ?
It seems cobc is not working with gcc-2.95 (or before). Recently,
I modified the compiler so that it makes use of the address of
compound literals (e.g., &(struct foo){1, 2}), which is valid in
recent gcc.
I have restored the previous code, so check it out and try again.
In the future, I will use the address of compound literals only
when it is supported by the C compiler.
Keisuke