This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Problem with -mno-cygwin compile
- To: "Craig Lanning" <lanning at scra dot org>, <cygwin at sourceware dot cygnus dot com>
- Subject: Re: Problem with -mno-cygwin compile
- From: "John Huddleston" <jhuddles at rocky dot itc dot nrcs dot usda dot gov>
- Date: Tue, 22 Feb 2000 08:19:15 -0700
- Organization: nrcs
- References: <14514.42467.930000.171423@ngds1.scra.org>
I have B20.1 with the 2.95.2 upgrade and it works for me.
Post your cygcheck -s -v -r to the list.
----- Original Message -----
From: Craig Lanning <lanning@scra.org>
To: <cygwin@sourceware.cygnus.com>
Sent: Tuesday, February 22, 2000 8:06 AM
Subject: Problem with -mno-cygwin compile
>
> 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);
> env++;
> }
> }
>
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com