Re: GCC4.2 LLVM Compiling issue
Re: GCC4.2 LLVM Compiling issue
- Subject: Re: GCC4.2 LLVM Compiling issue
- From: Neal <email@hidden>
- Date: Tue, 23 Jun 2009 16:47:54 -0700 (PDT)
SOME_MACRO is really a call to CMSG_SPACE()
----- Original Message ----
From: Chris Espinosa <email@hidden>
To: Neal <email@hidden>
Cc: email@hidden
Sent: Tuesday, June 23, 2009 4:22:28 PM
Subject: Re: GCC4.2 LLVM Compiling issue
On Jun 23, 2009, at 4:18 PM, Neal wrote:
> Hi all I'm trying to test compiling my existing code with GCC 4.2 and LLVM and I get the following error.
> error: size of array 'class_id_list' is not an integral constant-expression
>
> Here is what the code looks like
>
>
> #define CLASS_ID_LIST_SIZE SOME_MACRO(CONSTANT_1 * sizeof(u_int32_t))
>
> ...
>
> int class_id_list[CLASS_ID_LIST_SIZE]; <--
>
> Is there a way that I can get this to compile without having to re-write this code?
Depends on what SOME_MACRO does.
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden