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"
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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