I do not believe "the program doesn't run" :-) But you (again) have
not pass all required information, so I only can reply in general:
a) store these 4 lines to file named "hello.prg" :
** hello.prg
? "hello world!"
wait
** eof
b) compile by "FlagShip hello.prg" and run in Linux Terminal by "./
a.out" for GUI mode or by "newfswin ./a.out" or "./a.out -io=t" for
textual mode
c) or compile by "FlagShip hello.prg -o hello" and run in Linux
Terminal by "./hello" for GUI mode or by "newfswin ./hello" or "./
hello -io=t" for textual mode
d) or compile by "FlagShip -d hello.prg -o hello" and run in Linux
Terminal by "./hello" for GUI mode with source-code debugger or by
"newfswin ./hello" or "./hello -io=t" for textual mode
Read the short instruction in README ("less /usr/local/FlagShip6/docu/
README") and try the examples referred there, see also how-to*
instructions.
Invoke "fsman" for FlagShip on-line manual (available also in .pdf
format) and read section FSC for compiler switches.
The common error, when the program quits immediately is:
1) not waiting for any output; use e.g. WAIT statement before your
QUIT
2) when the program consist of several modules, you either need to
specify the start module by "-Mname" switch, or as the first entry in
the compiler/linker list. Refer to fsman section FSC.1.2 to 1.6.
Alternatively, you may create Makefile semi-automatically by fsmake
available in the .../tools directory
3) wrong use of -na switch (comparable to Clipper's /N switch),
required for file-wide statics and to avoid generating of same named
UDF as the .prg name (see fsman FSC.1.3 and LNG.2.3.1)
If you have instead of above (a) source:
** hello.prg
procedure mystart // note
? "hello world!"
wait
** eof
you need to compile by "FlagShip -na -Mmystart hello.prg ..." to start
the execution in UDF mystart. With the standard "FlagShip
hello.prg ..." there is an entry point = procedure hello created
automatically. Since this UDF do nothing (no statements before UDF
mystart), the program quits immediatelly w/o any output.
Paul