Quote Originally Posted by Satya View Post
I am not sure but if possible try reducing the array size.
I can't reduce the array size, because I need to read a transaction database and store to this array, then generate a tree so as to mine the data. I just checked some posts online and it appears this is a common problem with linux x86_64 systems[dont' really know if it's the same issue on Mac OS, Windows etc... will verify to be sure] since the sum of all statically allocated data (including COMMON) + code cannot be >2GB. The solution is to use the -mcmodel option with gcc which enables the dynamic allocation of memory.

so
Code:
gcc -g -mcmodel=medium -o out program_files.c
did the trick :-)

Thanks,
Nyah