From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Sobolev To: earnie_boyd@yahoo.com Cc: "gnu-win32 @cygnus.com" Subject: Re: B20: bad support for Mingw? Date: Wed, 04 Nov 1998 11:39:00 -0000 Message-id: <363F3CA6.2950553C@vega.pfts.com> References: <19981103172119.27410.rocketmail@send1d.yahoomail.com> X-SW-Source: 1998-11/msg00172.html I'm rebuilding jpeg.dll (on separate Mingw pakage it builds just fine). Here is Makefile in attachment. Earnie Boyd wrote: > What library is it from? > > What command(s) are you or your package makefile using to build your > executable? > > I've just succesfully built a native "HelloWorld" type program with no > dependency on cygwin1.dll. > > The _impure_ptr means that you are mixing in cygwin1.dll dependencies. > > ---Maxim Sobolev wrote: > > > > Thank you it helped a bit but I still on link phase have an "undefined > > reference to `_impure_ptr'" error. > > > > Maxim > > > > Earnie Boyd wrote: > > > > > ---Maxim Sobolev wrote: > > > > > > > > It seems to me that "-mno-cygwin" switch doesn't make it magick to > > > > include Mingw32 version of header files (program that just fine > > > compiled > > > > with Mingw32 with B20 doesn't). Maybe there is any other switch to > > > > include all needed header (Mingw instead of Cygwin) files? Any > ideas? > > > > > > > > > > I was able to resolve this by prefixing ../../../../ to the > > > include/mingw32 in the -mno-cygwin commands for the cpp in the specs > > > file. > > > > > > Here is the section of the specs file with the switches that work: > > > *cpp: > > > -remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} > > > %{!mno-cygwin:-D__CYGWIN32__ -D__CY > > > GWIN__} %{mno-cygwin:-iwithprefixbefore > ../../../../include/mingw32 > > > -D__MINGW3 > > > 2__=0.2} > > > > > > I verifyed that it picked up the correct header file by specifying > the > > > -H switch on the command line verifying that > include/mingw32/dirent.h > > > was included instead of include/dirent.h. > > > > > > == > > > - \\||// > > > -------------o0O0--Earnie--0O0o-------------- > > > -- earnie_boyd@yahoo.com -- > > > -- http://www.freeyellow.com/members5/gw32 -- > > > ----------------ooo0O--O0ooo----------------- > > > > > > PS: Newbie's, you should visit my page. > > > _________________________________________________________ > > > DO YOU YAHOO!? > > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > == > - \\||// > -------------o0O0--Earnie--0O0o-------------- > -- earnie_boyd@yahoo.com -- > -- http://www.freeyellow.com/members5/gw32 -- > ----------------ooo0O--O0ooo----------------- > > PS: Newbie's, you should visit my page. > _________________________________________________________ > DO YOU YAHOO!? > Get your free @yahoo.com address at http://mail.yahoo.com