ARM Cortex-M - Static array dyamically allocated
Mike
none at none.com
Fri Dec 20 07:03:50 PST 2013
On Wednesday, 18 December 2013 at 15:17:34 UTC, Johannes Pfau
wrote:
>
> I already have a personal branch with 2.064 backported to the
> gcc-4.8
> branch:
>
> https://github.com/jpf91/GDC/commits/arm-old
>
Thanks Iain and Johannes,
I've built Johannes's arm-old branch, but I can't yet get to the
linker stage to test my original problem. Instead, I'm now
getting a new set of strange errors. See below:
object.d:10: error: class Object only object.d can define this
reserved class name
object.d:46: error: class TypeInfo only object.d can define this
reserved class name
object.d:51: error: class TypeInfo_Array only object.d can define
this reserved class name
object.d:61: error: class TypeInfo_Class only object.d can define
this reserved class name
object.d:114: error: class TypeInfo_Interface only object.d can
define this reserved class name
object.d:119: error: class TypeInfo_Struct only object.d can
define this reserved class name
object.d:146: error: class TypeInfo_Pointer only object.d can
define this reserved class name
object.d:151: error: class TypeInfo_Const only object.d can
define this reserved class name
object.d:156: error: class TypeInfo_Typedef only object.d can
define this reserved class name
object.d:163: error: class TypeInfo_Enum only object.d can define
this reserved class name
object.d:10: error: class Object only object.d can define this
reserved class name
object.d:46: error: class TypeInfo only object.d can define this
reserved class name
object.d:51: error: class TypeInfo_Array only object.d can define
this reserved class name
object.d:61: error: class TypeInfo_Class only object.d can define
this reserved class name
object.d:114: error: class TypeInfo_Interface only object.d can
define this reserved class name
object.d:119: error: class TypeInfo_Struct only object.d can
define this reserved class name
object.d:146: error: class TypeInfo_Pointer only object.d can
define this reserved class name
object.d:151: error: class TypeInfo_Const only object.d can
define this reserved class name
object.d:156: error: class TypeInfo_Typedef only object.d can
define this reserved class name
object.d:163: error: class TypeInfo_Enum only object.d can define
this reserved class name
Two questions:
1) These are defined in my object.d, so why is it saying only
object.d can define these types?
2) Why is there exactly two instances of each error message?
Again, here's my build line:
arm-none-eabi-gdc -march=armv7e-m -mcpu=cortex-m4
-mtune=cortex-m4 -mthumb -fno-emit-moduleinfo -c
-ffunction-sections -fno-exceptions -fdata-sections start.d
object.d
More information about the D.gnu
mailing list