C & MinGW: Hello World gives me the error "programm too big to fit in memory"
        Posted  
        
            by 
                user1692088
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1692088
        
        
        
        Published on 2012-09-23T09:36:39Z
        Indexed on 
            2012/09/23
            9:37 UTC
        
        
        Read the original article
        Hit count: 419
        
I'm new here. Here's my problem:
I installed MinGW on my Windows 7 Home Premium 32-bit Netbook with Intel Atom CPU N550, 1.50GHz and 2GB RAM.
Now I made a file named hello.h and tried to compile it via CMD with the following command: "gcc c:\workspace\c\helloworld\hello.h -o out.exe"
It compiles with no error, but when I try to run out.exe, it gives me following error: "program too big to fit in memory"
Things I have checked:
- I have added "C:\MinGW\bin" to the Windows PATH Variable
 - I have googled for about one hour, but ever since I'm a newbie, I can't really figure out what the problem is.
 - I have compiled the same code on my 64-bit machine, compiles perfectly, but cannot be run due to 64-bit <-> 16-bit problematic.
 
I'd really appreciate, if someone could figure out, what the problem is. Btw, here's my hello.h:
#include <stdio.h>
int main(void){
    printf("Hello, World\n");
}
... That's it. Thanks for your replies. Cheers, Boris
© Stack Overflow or respective owner