Menu

problem with compiling hellow world project

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

    salman - 2008-02-22

    well, i m using Dev C++ 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

     
    • cpns

      cpns - 2008-02-22

      It looks like you have screwed around with teh settings an it is trying to build a GUI app or at least compile a resource file.

      Start again this way:

      File->New->Project->Introductory->Hello World

      Do not place your project in "My Documents". The spaces in the paths can mess up the project.

      If you have monkeyed with the settings go to Tools->Compiler and reset them with the Default button. But it is better to use a project in any case since that ensures you always get the crrect build settings.

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.