www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <19991104133208.3946.rocketmail@web120.yahoomail.com> |
Date: | Thu, 4 Nov 1999 05:32:08 -0800 (PST) |
From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
Reply-To: | earnie_boydNOREPLY AT yahoo DOT com |
Subject: | Re: _impure_ptr error mesage |
To: | Mark Schoenberg <mark AT lpb DOT niams DOT nih DOT gov>, cygwin AT sourceware DOT cygnus DOT com |
MIME-Version: | 1.0 |
--- Mark Schoenberg <mark AT lpb DOT niams DOT nih DOT gov> wrote: > I have installed gcc-2.95 separate from Cygwin-b20.1 and have been > experiencing problems using it instead of the b20.1 gcc. Does anyone know > the > meaning of the error message "undefined reference to _impure_ptr" which seems > to appear for me using gcc-2.95 with "-mno-cygwin" when I have used code that > references things like getchar, putchar, getc (but not fgetc), putc (but not > fputc), stdout and stderr. Could it mean that these things are included in > Cygwin but not the latest port of Mingw? That would be wierd! Is it > possible > I need a #include<whatever.h> in my code? It means that you're including the incorrect headers. You've included the Cygwin headers and not the Mingw32 headers. Perhaps you've picked up the wrong specs file. To avoid these problems I use two seperate environments in which I put into somewhat standard directories the headers and the libraries for each different package. I.E.: I put cygwin headers into /root/cygwin/usr/include and I put mingw32 headers into /root/mingw32/usr/include setting up the other appropriate directories under /root/cygwin and /root/mingw32. I then use a .bat file to umount / and mount \\root\\cygwin / or mount \\root\\mingw32 dependant upon which I want to use. The only caveat is that you can use both at the same time. If you need more details let me know. ===== Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com> Cygwin Newbies, please visit <http://www.freeyellow.com/members5/gw32/index.html> __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |