Brian Dessent <[EMAIL PROTECTED]> writes: > MinGW implements access to 'environ' as a macro in stdlib.h, one which > gets the environment pointer through a function call. However, that > macro is not enabled if __STRICT_ANSI__ is set, and -std=c99 sets > __STRICT_ANSI__. So one workaround would be to drop -std=c99, or add > -U__STRICT_ANSI__ to CFLAGS but that seems rather lame.
Is there a particular reason that you want to use -std=c99? To me, it seems odd to request C99-only semantics from the compiler and then try to use features that are not part of C99 (e.g. environ). I would use -std=gnu99 in this case. -- "Unix... is not so much a product as it is a painstakingly compiled oral history of the hacker subculture." --Neal Stephenson