[fpc-devel]Simple source for MAKE & 0th param test
KO Myung-Hun
komh at chollian.net
Fri Nov 10 15:36:49 CET 2000
Hi...
I also know that 0th parameter is full path to program file. However,
because if a program launched by MAKE, 0th parameter is not full path to
program file, I thought it strange.
This is a simple source for MAKE & 0th parameter test.
---------- maketest.pas
program MakeTest;
uses
Dos;
begin
WriteLn( '----- MakeTest report ----- ' );
WriteLn( 'ParamStr( 0 ) : ', ParamStr( 0 ));
WriteLn( 'argv[ 0 ] : ', argv[ 0 ]);
end.
--------
-------- makefile
default :
maketest.exe
--------
If you run make and maketest, you could recognize difference of both.
I guess that this is a bug of MAKE because a program compiled by GCC
also
cause the same result.
For better FPC !!!
from KO Myung-Hun...
More information about the fpc-devel
mailing list