Sky Diploma commented: Oops! My Bad. +3
Ancient Dragon commented: Yes, that was my point :) +36
Firstly I see that you are Using a outdated compiler. Though it is not il-legal to use it . It is considered better if you use a modern compiler like CODE::BLOCKs etc.
I normally wont go into small errors in other peoples posting,
but it should be noted that code::blocks is an ide.
The compiler is most likely(depending on the setup) the mingw compiler. The mingw is a subset of the gnu toolchain. :)
I dont like being a correction nazi,
but the difference between compiler and ide/editor is quite important.
cheers!
To the original poster.
Is it nescesarry to use static variables for you program?
>>if you can have it in memory, then you can have it in a vector.
No it doesn't. If he is still using 32-bit compiler than the size of the long int is not changed from what it is on a 32-bit operating system, and the STL libraries will still be 32-bit libraries. He will need to use a 64-bit compiler to make any use of the 64-bit os.
Well the poster says he is using a 64bit linux,
so I found it safe to assume he is using a 64bit toolchain.
But your argument is valid. But for sake of completeness, the same can be said about a 16 bit compiler :)