This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: impure_ptr/Mingw and Cygwin
- From: "Peter A. Castro" <doctor at fruitbat dot org>
- To: Andrew DeFaria <ADeFaria at SALIRA dot com>
- Cc: cygwin at cygwin dot com
- Date: Mon, 25 Nov 2002 09:44:46 -0800 (PST)
- Subject: Re: impure_ptr/Mingw and Cygwin
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 -mno-cygwin -mwindows! Still
> have the error.
Suggest you run nm against all your objects and libraries and find which
has the _impure_ptr references, then recompile just those.
> >> /bin/gcc mksf.o mksfOpts.o mksfIO.o flmCrc.o -mno-cygwin -mwindows
> >> -liberty -lmingw32 -o mksf
> >> mksf.o(.text+0x60f): In function `main':
> >> /dview/defaria_2.0/salira/neopon/build/maketools/mksf.c:29: undefined
> >> reference to `_impure_ptr'
> >> mksf.o(.text+0x874):/dview/defaria_2.0/salira/neopon/build/maketools/mksf.c:66:
> >> undefined reference to `_impure_ptr'
> >> mksfOpts.o(.text+0x309): In function `usage':
> >> /dview/defaria_2.0/salira/neopon/build/maketools/mksfOpts.c:13: undefined
> >> reference to `_impure_ptr'
> >> mksfOpts.o(.text+0x331):/dview/defaria_2.0/salira/neopon/build/maketools/mksfOp
> >> s.c:14: undefined reference to `_impure_ptr'
> >> mksfOpts.o(.text+0x352):/dview/defaria_2.0/salira/neopon/build/maketools/mksfOp
> >> s.c:15: undefined reference to `_impure_ptr'
> >> mksfOpts.o(.text+0x36a):/dview/defaria_2.0/salira/neopon/build/maketools/mksfOp
> >> s.c:16: more undefined references to `_impure_ptr' follow
> >> make: *** [mksf] Error 1
> >>
> >> Again the _impure_ptr things come up. Where is this supposed to be
> >> resolved from?
--
Peter A. Castro <doctor@fruitbat.org> or <Peter.Castro@oracle.com>
"Cats are just autistic Dogs" -- Dr. Tony Attwood
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/