🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #34124

Re: argc and argv with gem

#34124
From: Dan Moore
Date: Fri, 16 Sep 1988 14:52
16 lines
1056 bytes
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
Technical Details
Message-ID: <3578@druhi.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!bloom-beacon!apple!rutgers!att!mtuxo!mtgzy!mtgzz!drutx!druhi!dlm
References: <3441@boulder.Colorado.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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