This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I'm looking for a clue as to why I get an error with my crosstool generated toolchain, but not with any other. Here is my source file, test.c:
int main () { unsigned long long int test = 0x0008000000000000; }
Here is the verbose output of the gcc-2.96 which works fine:
gcc-3.x is stricter. You need to use ULL on the end of such constants. Yes, this is a pain. I've had to use #if statements to initialize constants with and without the ULL for msvc and gcc-3.x. - Dan
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |