[fpc-devel]Simple source for MAKE & 0th param test
komh at chollian.net
Fri Nov 10 15:36:49 CET 2000
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.
WriteLn( '----- MakeTest report ----- ' );
WriteLn( 'ParamStr( 0 ) : ', ParamStr( 0 ));
WriteLn( 'argv[ 0 ] : ', argv[ 0 ]);
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
cause the same result.
For better FPC !!!
from KO Myung-Hun...
More information about the fpc-devel