Re: initializer must be constant error bug?
- From: "Ivan A. Kosarev" <ik@xxxxxxxxxxx>
- Date: Tue, 24 Jan 2006 23:19:49 +0300
"Mike H." <mikehg_67@xxxxxxxxx> wrote in message
news:43d61cf5$0$9250$6d36acad@xxxxxxxxxxxxxxxxxxxxxxxx
> Ivan A. Kosarev wrote:
>> "Mike H." <mikehg_67@xxxxxxxxx> wrote in message
>> news:43d5a8db$0$9239$6d36acad@xxxxxxxxxxxxxxxxxxxxxxxx
>>
>>>void foo(int x, int y, int w, int h)
>>>{
>>>RECT rc = { x,y,w,h };
>>>}
>>>
>>>This should work for auto variables, correct?
>>
>> Nope, not in C89. In both C99 and C++ that would be correct.
>>
> I thought Lcc-Win32 was being updated to support C99, maybe not
> implemented yet?, or a switch I'm missing?
Oh, if that wasn't accepted by your LCC-Win32 in C99-compatibility mode,
it's certainly a defect then.
--
Unicals Group -- Embedded C++ for Your IP Cores
http://www.unicals.com
.
- References:
- initializer must be constant error bug?
- From: Mike H.
- Re: initializer must be constant error bug?
- From: Ivan A. Kosarev
- Re: initializer must be constant error bug?
- From: Mike H.
- initializer must be constant error bug?
- Prev by Date: Using a foreign lib
- Next by Date: Re: lcc -ansic option
- Previous by thread: Re: initializer must be constant error bug?
- Next by thread: Using a foreign lib
- Index(es):
Relevant Pages
|
|