Re: impure_ptr/Mingw and cygwin

2002-11-26 Thread Andrew DeFaria
Peter A. Castro wrote: No, the example above is from the command line in which *you* specified "-I../../include -I/usr/include -I/usr/include/mingw". Sorry I misunderstood you. Didn't really want to have to sign up for yet another account on another mailing list, yadda, yadda. It seemed to

Re: impure_ptr/Mingw and cygwin

2002-11-25 Thread Peter A. Castro
On Mon, 25 Nov 2002, Andrew DeFaria wrote: > Christopher Faylor wrote: > > > [one more for the archives] > > On Mon, Nov 25, 2002 at 04:51:38PM -0800, Andrew DeFaria wrote: > > > >> If this were really so then why, if I don't specify -I/usr/include I > >> get getopt.h not found?!? I should be f

Re: impure_ptr/Mingw and cygwin

2002-11-25 Thread Christopher Faylor
On Mon, Nov 25, 2002 at 05:42:43PM -0800, Andrew DeFaria wrote: >Christopher Faylor wrote: > >>[one more for the archives] >>On Mon, Nov 25, 2002 at 04:51:38PM -0800, Andrew DeFaria wrote: >> >>>If this were really so then why, if I don't specify -I/usr/include I >>>get getopt.h not found?!? I sh

Re: impure_ptr/Mingw and cygwin

2002-11-25 Thread Andrew DeFaria
Christopher Faylor wrote: [one more for the archives] On Mon, Nov 25, 2002 at 04:51:38PM -0800, Andrew DeFaria wrote: If this were really so then why, if I don't specify -I/usr/include I get getopt.h not found?!? I should be found in /usr/include/getopt.h no? /usr/include is for cygwin apps.

Re: impure_ptr/Mingw and cygwin

2002-11-25 Thread Christopher Faylor
[one more for the archives] On Mon, Nov 25, 2002 at 04:51:38PM -0800, Andrew DeFaria wrote: >If this were really so then why, if I don't specify -I/usr/include I get >getopt.h not found?!? I should be found in /usr/include/getopt.h no? /usr/include is for cygwin apps. If you add -I/usr/include y

Re: impure_ptr/Mingw and Cygwin

2002-11-25 Thread Andrew DeFaria
Peter A. Castro wrote: On Mon, 25 Nov 2002, Andrew DeFaria wrote: Peter A. Castro wrote: On Sun, 24 Nov 2002, Andrew DeFaria wrote: Peter A. Castro wrote: What you show below is only linking. I believe you need to re-compile all of your source with -mno-cygwin -mwindows a

Re: impure_ptr/Mingw and Cygwin

2002-11-25 Thread Peter A. Castro
On Mon, 25 Nov 2002, Andrew DeFaria wrote: > Peter A. Castro wrote: > > On Sun, 24 Nov 2002, Andrew DeFaria wrote: > >> Peter A. Castro wrote: > >> > >>> What you show below is only linking. I believe you need to > >>> re-compile all of your source with -mno-cygwin -mwindows as well to > >>> mak

Re: impure_ptr/Mingw and cygwin

2002-11-25 Thread Christopher Faylor
On Mon, Nov 25, 2002 at 01:16:04PM -0800, Andrew DeFaria wrote: >So the question now is: How do I satisfy my need for getopt and still >produce objects without _impure_ptr's? You find some native windows getopt, of course. >Ah ha! Yes. Don't include the cygwin headers when you're compiling wit

Re: impure_ptr/Mingw and Cygwin

2002-11-25 Thread Andrew DeFaria
Peter A. Castro wrote: On Sun, 24 Nov 2002, Andrew DeFaria wrote: Peter A. Castro wrote: What you show below is only linking. I believe you need to re-compile all of your source with -mno-cygwin -mwindows as well to make the _impure_ptr references go away. But I did re-compile all my sourc

Re: impure_ptr/Mingw and Cygwin

2002-11-25 Thread Peter A. Castro
On Sun, 24 Nov 2002, Andrew DeFaria wrote: > Peter A. Castro wrote: > > > What you show below is only linking. I believe you need to re-compile > > all of your source with -mno-cygwin -mwindows as well to make the > > _impure_ptr references go away. > > But I did re-compile all my sources with -

Re: impure_ptr/Mingw and Cygwin

2002-11-25 Thread Peter A. Castro
On Sun, 24 Nov 2002, Max Bowsher wrote: > Peter A. Castro <[EMAIL PROTECTED]> wrote: > > > On Sat, 23 Nov 2002, Max Bowsher wrote: > >> $ gcc -g foo.c -mno-cygwin -mwindows -o foo -liberty -lmingw32 > >> $ ./foo.exe > x > >> Hello World 2 > >> $ cat x > >> Hello World > >> > >> How odd. I get the

Re: impure_ptr/Mingw and Cygwin

2002-11-24 Thread Andrew DeFaria
Peter A. Castro wrote: What you show below is only linking. I believe you need to re-compile all of your source with -mno-cygwin -mwindows as well to make the _impure_ptr references go away. But I did re-compile all my sources with -mno-cygwin -mwindows! Still have the error. /bin/gcc mksf.o

Re: impure_ptr/Mingw and Cygwin

2002-11-24 Thread Max Bowsher
Peter A. Castro <[EMAIL PROTECTED]> wrote: > On Sat, 23 Nov 2002, Max Bowsher wrote: >> $ gcc -g foo.c -mno-cygwin -mwindows -o foo -liberty -lmingw32 >> $ ./foo.exe > x >> Hello World 2 >> $ cat x >> Hello World >> >> How odd. I get the stderr output just fine. > > Yes, very interesting. I'll ha

Re: impure_ptr/Mingw and Cygwin

2002-11-24 Thread Peter A. Castro
On Sat, 23 Nov 2002, Max Bowsher wrote: > Peter A. Castro <[EMAIL PROTECTED]> wrote: > > > Well, for one thing, linking with -lg will pull in cygwin.dll since > > /lib/libg.a is a symlink to libcygwin.a. So your program won't be > > Cygwin-free, if that's your goal. However, I got it to work wi

Re: impure_ptr/Mingw and Cygwin

2002-11-24 Thread Peter A. Castro
On Fri, 22 Nov 2002, Andrew DeFaria wrote: > Peter A. Castro wrote: > On Fri, 22 Nov 2002, Andrew DeFaria wrote: > > I wish to use -mno-cygwin to produce an > executable that can work without Cygwin > installed. I have successfully done this before. >

Re: impure_ptr/Mingw and Cygwin

2002-11-23 Thread Max Bowsher
Peter A. Castro <[EMAIL PROTECTED]> wrote: > Well, for one thing, linking with -lg will pull in cygwin.dll since > /lib/libg.a is a symlink to libcygwin.a. So your program won't be > Cygwin-free, if that's your goal. However, I got it to work with the > following command: > > $ gcc -g foo.c -mn

Re: impure_ptr/Mingw and Cygwin

2002-11-22 Thread Peter A. Castro
On Fri, 22 Nov 2002, Andrew DeFaria wrote: > I wish to use -mno-cygwin to produce an executable that can work without > Cygwin installed. I have successfully done this before. Now I'm adding > some functionality to my program and it is no longer working! I've > worked it out such that it will c

Re: impure_ptr/Mingw and cygwin

2002-11-22 Thread Christopher Faylor
On Fri, Nov 22, 2002 at 08:34:27PM -0500, Christopher Faylor wrote: >Undoubtedly neither -liberty nor -lg are compiled using -mno-cygwin. Sorry. That should read "one of or both of -liberty or -lg". cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: ht

Re: impure_ptr/Mingw and cygwin

2002-11-22 Thread Christopher Faylor
On Fri, Nov 22, 2002 at 05:08:33PM -0800, Andrew DeFaria wrote: >I wish to use -mno-cygwin to produce an executable that can work without >Cygwin installed. I have successfully done this before. Now I'm adding >some functionality to my program and it is no longer working! I've >worked it out suc