Problem with -mno-cygwin compile

Craig Lanning
Tue Feb 22 07:04:00 GMT 2000

My environment is
   Windows 98
   Cygwin b20.1 + 2/21 snapshot
   gcc 2.95.2

If I compile the code below with -mno-cygwin it complains about the
symbol _environ_dll not being resolved.  (I have been seeing this
problem for a couple of months.)  If I compile it without -mno-cygwin
it works fine.  Is there something else I need to do to get it to work
with -mno-cygwin?

Craig Lanning

#include <stdio.h>
#include <stdlib.h>

extern char **environ;

int main(void)
  int i=1;
  char **env=environ;

  while (*env) {
    printf("env[%2d]: %s\n",i++,*env);

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list