This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem including float.h with gcc -mno-cygwin (Danny can you comment?)


CYGWIN != LINUX!!!! Oh, wait, this isn't cygwin-talk. Sorry...

There appears to be a conflicting contraints between mingw and gcc-mingw. The float.h provided by mingw definitely assumes that it will be included before the compiler provided float.h.

I am able to compile my app successfully by hardcoding the #include directive so that it picks up the mingw version of float.h first.

There may be some problems with some other files, but I do not know,

barney-xp$ /bin/ls /usr/lib/gcc-lib/i686-pc-mingw32/3.3.3/include > gcc.lst
barney-xp$ /bin/ls /usr/include/mingw > mingw.lst
barney-xp$ comm -12 gcc.lst mingw.lst
float.h
limits.h
stdarg.h
stddef.h
varargs.h
barney-xp$

Christopher Faylor wrote:

On Sat, Mar 19, 2005 at 11:14:04AM -0500, Paul Stodghill wrote:


Argh. I didn't proofread my post. Sorry about that. Here is how it should have read.

[The fact that the cygwin compiler path appears on the search path] is a different and unrelated problem, I think.

barney-xp$ md5sum /usr/lib/gcc-lib/*/3.3.3/include/float.h
248cb979b88c788e88100b913eea6ce9 */usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/float.h
248cb979b88c788e88100b913eea6ce9 */usr/lib/gcc-lib/i686-pc-mingw32/3.3.3/include/float.h
barney-xp$


The bug that I am observing is that /usr/i686-pc-mingw32/include needs to appear on the search path before any of the /usr/lib/gcc-lib include files.



That would make mingw unlike every other compiler out there. Try it on linux and you can see that the gcc library includes are supposed to be first. Putting them second would screw up other things.

Danny, are you reading this?

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/




-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]