Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » eclipse x64 indexing error(x64 has bigger value for ULONG_MAX which causes indexing to fail)
eclipse x64 indexing error [message #1017887] Tue, 12 March 2013 17:52
David W is currently offline David WFriend
Messages: 16
Registered: March 2013
Junior Member
Hi

Here is my problem, searched around, cannot find an answer.

In my source, I have
if (ULONG_MAX >> 31) == 1
{
typedef struct {
...
} sil;
}

On a 32-bit machine, this works fine which goes in to the if statement, sil
is defined. Eclipse doesn't show any error after indexing.

However, when I use eclipse (x64) on a 64-bit machine. the value for ULONG_MAX is 9223372036854775807L and so the if statement above failed . Anything related
to sil, eclipse doesn't understand and gave lots of error.

Thanks help.

Thanks
Previous Topic:Eclipse preprocessor coloring code from a file or makefile?
Next Topic:Invoke CDT programmatically: performances
Goto Forum:
  


Current Time: Sat Apr 20 02:10:05 GMT 2024

Powered by FUDForum. Page generated in 0.02703 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top