I have installed Codelite and have tried my first program but have no success as yet.
I have built a project and loaded in my code.
Code: Select all
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
FILE *inputFile;
char c,cc;
inputFile = fopen("20090220085501237.RPT", "r"); //fopen("file name","mode i.e r-read");
while((c=getc(f))!=EOF) //loop for reading a char upto end of file
{
while((cc=getc(f))!='\n') // loop for reading a char up to end of line
{
putchar(cc); // to display line
}
}
fclose(inputFile);
}
When a try to build this project I get the following error message in the trace window
17:03:14: Error: Execution of command '"mingw32-make.exe" -j 2 -f "SEW-Eurodrive_wsp.mk"' failed (error 2: the system cannot find the file specified.)
I assume that it means the file 20090220085501237.RPT cannot be found. I have checked that the file is in the same directory as the project.
In the project directory I have the files AU_PICKLIST.mk, main.cpp, AU_PICKLIST.project & 20090220085501237.RPT. Are these correct?
The build window had the message
Building:
"mingw32-make.exe" -j 2 -f "SEW-Eurodrive_wsp.mk"
Failed to start build process, command: "mingw32-make.exe" -j 2 -f "SEW-Eurodrive_wsp.mk", process terminated with exit code: 0
I am a bit of a loss at the moment as to what to do next. What is the error messages telling me? (There are so many options and windows. )
Is there any written documentation available?