[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] -mshort executables have no command line



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!

--
MiKRO / Mystic Bytes
http://mikro.atari.org