Hi!
I am trying to create a very small application in Mandrake Linux 8.1,
compiling isn't the problem at this moment, I can't start the
application :-(
This is the source:
#include stdio.h
int main(void)
{
printf(Hello world!\n);
return 0;
}
then I do: gcc main.c -omain
This
El lun, 25-03-2002 a las 12:55, Marco escribió:
Hi!
I am trying to create a very small application in Mandrake Linux 8.1,
compiling isn't the problem at this moment, I can't start the
application :-(
This is the source:
#include stdio.h
int main(void)
{
printf(Hello
This is a path issue. cd to the directory where the executable is and try
./main. The dot represents your current directory.
HTH,
-nathan
On Monday 25 March 2002 09:55 am, you wrote:
Hi!
I am trying to create a very small application in Mandrake Linux 8.1,
compiling isn't the problem at
Further to these other two postings; there is a good reson why the current
directory is not included in the PATH variable- security. There were postings
about a month ago on the subject on this list.
Cheers.
Michael
Nathan Pryor wrote:
This is a path issue. cd to the directory where the
then I do: gcc main.c -omain
One normally places the executable file before the source files, but
I guess that works too :).
i.e. gcc -O -o main main.c
But when I start it, I get: bash: main: command not found
A chmod 777 main isn't also working. Do I have (ELF???) library
problems?
If