Path: utzoo!attcan!uunet!mcvax!hp4nl!uva!gert From: gert@uva.UUCP (Gert Poletiek) Newsgroups: comp.sys.atari.st Subject: Re: argc and argv with gem Keywords: MWC, argc, argv, GEM, commands. Message-ID: <534@uva.UUCP> Date: 16 Sep 88 07:22:57 GMT References: <358@island.uu.net> <626@mace.cc.purdue.edu> <3441@boulder.Colorado.EDU> Sender: news@uva.UUCP Reply-To: gert@uva.UUCP (Gert Poletiek) Organization: Faculty of Mathematics and Computer Science, Lines: 29 In article <3441@boulder.Colorado.EDU> cochrane@spot.Colorado.EDU (COCHRANE JIM T) writes: > > > >How does one go about writing a GEM program that will accept arguments to >main via argc and argv? I'm using Mark Williams C and when I try to use >argc and argv with a GEM program the program bombs. > >Thanks for any help, >Jim Cochrane Manually compare the tos and gem runtime startup modules. Sources are provided with Mark Williams C. You might also try linking directly with tos startup instead of gem startup. The the only thing you have to remember is that linking with -VGEM also includes the Gem library. Link with something like; ld -s -o output lib/gcrts0.o objectlist -lvdi -laes -lc That should do it. ------------------------------------------------------------------------------- Gert Poletiek Dept. of Math. and Computing Science, University of Amsterdam, Kruislaan 409, NL-1098 SJ Amsterdam, The Netherlands UUCP: {decvax,cernvax,unido,seismo}!mcvax!uva!gert bitnet: uva!gert@mcvax.bitnet, U00025@hasara5.bitnet Opinions (if any) are my own. -------------------------------------------------------------------------------