On 01/16/13 15:09, Miro Kropáček wrote:
Compile & run with some argument (by drag&drop in TOS for example) this:
#include <stdio.h>
int main( int argc, char* argv[] )
{
int i;
for( i = 1; i < argc; ++i )
{
printf( "argv[%d]: %s\n", i, argv[i] );
}
getchar();
}
as
m68k-atari-mint-gcc -o test.ttp test.c
... everything's fine, we see the passed argument. Now as
m68k-atari-mint-gcc -mshort -o test.ttp test.c
... and there are no arguments!
There is no -mshort version of libc (i.e. libc16.a) for a while, therefore printf won't work, or show strange results.
Alan.