Page 1 of 2
Hello world program
Posted: Tue Nov 12, 2013 8:39 pm
by pablomagno
Hello sirs
I was installed codelite and I write the helloworld stupid program
but I don see (the Hello world sentence in the screen)
I only see "Please any key to continue"
I fell an idiot.
I am 52 years old learn c in the past and not remember how to program
#include <stdio.h>
int main(int argc, char **argv);
{
printf("hello world\n");
return 0;
}
this is a program but I don't can see the hello world sentence.
if anyone can tell me where is my mistake Pleaseee.
Re: Hello world program
Posted: Tue Nov 12, 2013 8:46 pm
by pavel.iqx
what about this:
int main(int argc, char **argv);
?
i can't even compile it with semicolon there
Re: Hello world program
Posted: Tue Nov 12, 2013 8:59 pm
by pablomagno
Hi Pavel
I delete the " ;"
but the program not write the sentence "Hello World"
Re: Hello world program
Posted: Tue Nov 12, 2013 9:04 pm
by pavel.iqx
Re: Hello world program
Posted: Tue Nov 12, 2013 9:27 pm
by pablomagno
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f Makefile"
The current directory is invalid.
0 errors, 0 warnings
this is that I recive
I was do exactly whats write in the link that you send me.
whitout success.
Re: Hello world program
Posted: Tue Nov 12, 2013 9:44 pm
by eranif
pablomagno wrote:C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f Makefile"
The current directory is invalid.
0 errors, 0 warnings
this is that I recive
I was do exactly whats write in the link that you send me.
whitout success.
Make sure you create the workspace in a directory with
write permissions
Eran
Re: Hello world program
Posted: Wed Nov 13, 2013 1:19 am
by Gibbon1
I saw that, 'directory is invalid' recently when the project wasn't under the workspace in the directory tree.
I'd suggest, starting over from scratch and try again.
Also try running the executable in a dos shell otherwise the hello world program will run, print hello world, and then exit and the window closes before you can see the result.
Re: Hello world program
Posted: Wed Nov 13, 2013 10:33 am
by eranif
Gibbon1 wrote:Also try running the executable in a dos shell otherwise the hello world program will run, print hello world, and then exit and the window closes before you can see the result.
Not necessarily true - open your project settings and tick the little check box in the 'General' page that says ' Pause when execution ends'
Eran
Re: Hello world program
Posted: Thu Nov 14, 2013 12:27 am
by pablomagno
Hi thank's you for the help.
the solution was uninstall the codelite program
and reinstall this in a diferent directory.
I was install this in the c:\codelite and this is work well!
when I install in the directory C:\program files(x86) the program was not run.
Best regards,
Pablo
Re: Hello world program
Posted: Thu Nov 14, 2013 3:44 pm
by Jarod42
The problem is not where you install codelite,
but where you create source files, workspace, and outputdir...
You can (should) create your files outside of the codelite directory.