Do Mär 28 19:19:49 2013
Good evening.
Thank You for help.

 >
 > An exe is an executable program, under linux any file can be marked as
 > executable (including shell scripts), every file has a set of
 > 'permissions' attached to it, you can see them by typing ls -al at a
 > command prompt, one is called the execute permission or 'x'. you can set
 > it by typing chmod +x filename.  this will make any file executable.
 > *
 > This I did not understand.
 >
 > Example:
 > I am creating in DOS a programe in Pascal.
 > I call it doit.pas.
 > Then I compile it and there is a file calles doit.exe.
 >
 > Now I call doit.exe and it is running.
 >


Hi,

Pretty much the same process under linux, you write the pascal in a file
called doit.pas and then compile it.
*
OK


Most compilers on linux (gcc, fpc,
gpc) support an option to name the output file.
*
OK

  This is because often
unixy programs push there output to the screen (stdout) so that it can
be used with all the standard cli tools.
*
OK

  The compilers often output the
compiled program into a file called a.out*
YES
this I swa:

out

  which is executable (you just
type ./a.out and it runs.
*
OK

  So if you add an option to the compiler line
"-odoit" it will output the compiled file as doit which you run by
typing "./doit"
eg.
fpc doit.pas -odoit
./doit

*
OK

But when I
comile with Xubuntu
the file  doit.pas to doit.out
it only is able to run with a Debian Linux.
Is this right?



As linux does not really care about file extensions
*
Yes

there is no reason
not to add a '.exe' or whatever to the end but it is not necessary.
eg.
fpc doit.pas -odoit.exe
./doit.exe
*
OK


   The only thing to go wrong is a file not being executable, you get a
permission denied message and need to type:-
chmod +x doit (doit.exe)

Hope this clarifies things a little
*
Yes.

Thank You.

It is like gif

I can name   pic.gif   pic.gif  and pic
but it is more clear to name it pic.gif
for myself.


But Gimp can understand pic also.


"Gnu Compiler Collection"
Is this a good idea to use it as beginner?


Regards
Sophie





------------------------------------

To unsubscribe from this list, please email 
[email protected] & you will be removed.Yahoo! Groups 
Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to