Path: utzoo!attcan!uunet!husc6!bloom-beacon!apple!rutgers!att!mtuxo!mtgzy!mtgzz!drutx!druhi!dlm From: dlm@druhi.ATT.COM (Dan Moore) Newsgroups: comp.sys.atari.st Subject: Re: argc and argv with gem Message-ID: <3578@druhi.ATT.COM> Date: 16 Sep 88 14:52:08 GMT References: <3441@boulder.Colorado.EDU> Organization: AT&T, Denver, CO Lines: 16 in article <3441@boulder.Colorado.EDU>, cochrane@spot.Colorado.EDU (COCHRANE JIM T) says: > 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. Just don't use the GEM switch on your link line. For some unknown reason Mark Williams uses a different startup routine when you say you have a GEM program. If you don't use the GEM switch you get the standard startup routine which lets the program accept command line arguments when you launch from a command shell. Dan Moore AT&T Bell Labs Denver dlm@druhi.ATT.COM