External argc and argv
Chad Gatesman
chadg@redrose.net
Mon Mar 8 18:46:00 GMT 1999
I need to be able to access argc and argv within a static constructor.
The way to do this would be to access external global declarations of
argc and argv. This is usually different for each platform. For
example, on Digital UNIX and Irix (using their native compilers) they
provide __Argc and __Argv.
>From what I can see, egcs does not provide such a thing. Can anyone
make any suggestions for me, or know of a way of accessing argc and argv
within a static constructor (constructs a static global object before
even getting to main())?
Thanks,
Chad Gatesman
More information about the Gcc
mailing list