avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Multidimensional arrays?


From: Volkmar Dierkes
Subject: Re: [avr-gcc-list] Multidimensional arrays?
Date: Wed, 12 Mar 2003 22:25:45 +0100
User-agent: 40tude_Dialog/2.0.3.1 Hamster/2.0.0.1

Hi Russ,

On Tue, 11 Mar 2003 15:02:02 -0500, Russell E. Hoffman wrote:

> My question is: are multidimensional arrays broken in avr-gcc? When I
> compile the following code:
>
> unsigned char foo[3][4];
>
> I get the following warning:
> objtool loadelf rev1.elf mapfile rev1.map writecof rev1.cof
> WARNING: - symbol 'foo' could not be resolved to a type - using VOID.
>
> I believe the error is actually from "objtool", not gcc itself. I'm
> using avr-gcc for Windows, and using the stock Makefile from the demo
> code. I use AVR Studio 3.56.

Yes, you are right. But it is not an error it is 'only' a warning.

> My question is -- is this a known bug? Will the code still execute
> correctly, even if perhaps the simulator won't trace it properly?

There is no affect to the code itself. The only issue is that you 
didn't get the correct type to that variable. Therefore you can't 
watch it directly. Only via looking in the data memory at the 
specified address of foo.

Volkmar


reply via email to

[Prev in Thread] Current Thread [Next in Thread]