Gcc array size limit? Can't make arraysbigger than 10MB
I've got gcc running on a Daul Xeon (1Gb Ram ) server. Problem is I can't seem to have arrays bigger than 10 MB - as in eg:
is allowed, but nothing bigger - otherwise I get a segmentation fault. But I need to open files up to 20 - 30 MB in size (email inboxes) to scan them for attachments - and remove the attachment - primitive Anti-virus program I'm writing.
How do I get c programs to allow much bigger arrays?