Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Craig Lanning MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14514.46956.550000.870768@ngds1.scra.org> Date: Tue, 22 Feb 2000 11:21:00 -0500 (Eastern Standard Time) To: Mumit Khan Cc: Craig Lanning , cygwin AT sourceware DOT cygnus DOT com Subject: Re: Problem with -mno-cygwin compile In-Reply-To: <200002221526.JAA05963@hp2.xraylith.wisc.edu> References: <14514 DOT 42467 DOT 930000 DOT 171423 AT ngds1 DOT scra DOT org> <200002221526 DOT JAA05963 AT hp2 DOT xraylith DOT wisc DOT edu> X-Mailer: VM 6.72 under 21.1 (patch 9) "Canyonlands" XEmacs Lucid Mumit Khan writes: > Craig Lanning writes: > > > > 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 > > #include > > > > extern char **environ; > ^^^^^^^^^^^^^^^^^^^^^^ > > Sorry, but you can't declare environ like this. Just omit the declaration > and you should be fine. The `environ' symbol is a macro and you're > essentially overriding it with your own and the linker can't find the > real thing. > > Regards, > Mumit > Thanks, that did the trick. Craig Lanning -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com