Menu

problem about compiling hello world program

salman
2008-02-22
2012-09-26
  • salman

    salman - 2008-02-22

    well, i m using Dev C++(v 4.9.9.2) to compile hello world project but i m getting error in making an exe file. any guidance about correcting this problem plz?
    here is the code:

    include <windows.h>

    include <stdio.h>

    include <stdlib.h>

    int main(int argc, char *argv[])
    {
    printf("Hello World!\n");

    printf("Press ENTER to continue...\n");
    getchar();
    return 0;
    }

    and here is the compile log:
    Compiler: Default compiler
    Building Makefile: "C:\Documents and Settings\Administrator\My Documents\New Folder\Makefile.win"
    Executing make...
    make.exe -f "C:\Documents and Settings\Administrator\My Documents\New Folder\Makefile.win" all
    gcc.exe -c Untitled1.c -o Untitled1.o -I"C:/install/Dev-Cpp/include"

    windres.exe -i Project1_private.rc --input-format=rc -o Project1_private.res -O coff

    windres.exe: no resources

    make.exe: *** [Project1_private.res] Error 1

    Execution terminated

     
    • kip2847

      kip2847 - 2008-02-25

      You have spaces in your path where your creating ur exe. i.e. "C:\Documents and Settings\Administrator\My Documents\New Folder\Makefile.win" if you read the FAQ you would get a better idea.

       

Log in to post a comment.