Tony Crouch a écrit:
Hi all, I'm a beginner to Pascal and also to the linux operating system, i've done some C++ programming before and am not wanting to discover my roots by relearning some pascal stuff ... just for something different.
My question is in regards to compiling pascal programs, i'm guessing that pascal programs can be made with an ordinary plain-text editor with the extension .pas.
I'm using Linux Red Hat 8 and i'm guessing that there'd be some among you who've had some exposure to C++ (or C) and you'll know that to compile a C++ program in Linux you go to terminal (or within your text editor ... i.e. emacs or xemacs) and type in g++ example.cpp -Wall -o example, where example.cpp is the text file and example is the executable file that results from compiling.
Could someone please inform me as to what the command line is to compile a pascal program on linux red hat 8.
gpc example.pas -o example -Wall --automake ^^^^^^^^^^^
with this no need for makefiles, projects etc...
Maurice