Article View: comp.sys.atari.st
Article #34106Re: argc and argv with gem
From: Gert Poletiek
Date: Fri, 16 Sep 1988 07:22
Date: Fri, 16 Sep 1988 07:22
29 lines
1683 bytes
1683 bytes
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.
-------------------------------------------------------------------------------
Technical Details
Message-ID:
<534@uva.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!hp4nl!uva!gertReferences:
<358@island.uu.net> <626@mace.cc.purdue.edu> <3441@boulder.Colorado.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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