Path: utzoo!attcan!uunet!husc6!mailrus!cornell!uw-beaver!uw-june!uw-entropy!dataio!bright From: bright@Data-IO.COM (Walter Bright) Newsgroups: comp.lang.c++ Subject: Re: Can I use argc and argv in a global constructor? Message-ID: <1782@dataio.Data-IO.COM> Date: 12 Dec 88 18:37:53 GMT References: <6082@columbia.edu> Reply-To: bright@dataio.Data-IO.COM (Walter Bright) Organization: Data I/O Corporation; Redmond, WA Lines: 7 In article <6082@columbia.edu> beshers@pipe.UUCP () writes: >Is it possible to reference argc and argv in a global >constructor? It's quite possible if you're prepared to rewrite the startup code. You rewrite it to create two globals, _argc and _argv, before the static constructors are called.