Page 1 of 1

Absolute beginner here

Posted: Mon Feb 23, 2009 10:16 am
by Tigers!
Dear all
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);
}
(Nothing extravagant I know but I need to start somewhere.)
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. :shock: )

Is there any written documentation available?

Re: Absolute beginner here

Posted: Mon Feb 23, 2009 10:35 am
by eranif
CodeLite comes in different packages, which one did you install? you should install the one with mingw3.4.5 included with its name.

This error:
Tigers! wrote: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.)
Means that codelite can not found mingw32-make.exe, but if you install the package with mingw3.4.5 in the name you will

Eran

Re: Absolute beginner here

Posted: Wed Feb 25, 2009 5:06 am
by Tigers!
Dear eranif
I loaded and installed the latest version of Codelite (1.0.2759 with mingw3.4.5). When asked I did a full installation.
Running again I get in the Build tab the following

"mingw32-make.exe" -j 2 -f "SEW-Eurodrive_wsp.mk"
----------Building project:[ Mobius_errors - Debug ]----------
g++ -c "C:/Program Files/Codelite C/SEW-Eurodrive/Mobius_errors/main.cpp" -g -o ./Debug/main.o "-I."
g++ -o ./Debug/Mobius_errors ./Debug/main.o
----------Build Ended----------
0 errors, 0 warnings


I assume that it means that all is well thus far?

Would I see any output in the Output tab? My code had the line

Code: Select all

while((cc=getc(f))!='\n') // loop for reading a char up to end of line
{
putchar(cc); // to display line
}
When should I expect to see this output? Within Codelite or elsewhere?

Re: Absolute beginner here

Posted: Wed Feb 25, 2009 12:26 pm
by eranif
When u launch it (Ctrl-F5) you will see the black windwos DOS windows

Again, please DONT use spaces in the directory that you place your workspace/projects/sources.

You wont be able to debug.

Eran