delorie.com/archives/browse.cgi | search |
Steve Thompson wrote: > On Mon, 23 Mar 2009, Dave Korn wrote: > >> It's a bit of a kludge compared to having a real honest-to-god >> cross-compiler. It's never worked entirely right in terms of keeping >> cygwin and mingw headers and libs completely separate. A full-blown mingw >> cross-compiler won't cost that much in terms of disk space and the >> reliability and correctness improvements will be worth it. > That's very interesting. I've been using -mno-cygwin for several years, > having done many many thousands of compiles and links using it, and I > have never had a problem with either headers or libraries! Just for example: $ gcc-3 -print-search-dirs libraries: =/usr/lib/gcc/i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/3.4.4 /:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/lib/i686-pc-cygwi n/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/lib/:/usr/ lib/gcc/i686-pc-cygwin/3.4.4/../../../i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc -cygwin/3.4.4/../../../:/lib/i686-pc-cygwin/3.4.4/:/lib/:/usr/lib/i686-pc-cygwin /3.4.4/:/usr/lib/ $ gcc-3 -mno-cygwin -print-search-dirs libraries: =/usr/lib/gcc/i686-pc-mingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/3.4 .4/:/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/lib/i686-pc-m ingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/lib /:/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../i686-pc-mingw32/3.4.4/:/usr/lib/gc c/i686-pc-mingw32/3.4.4/../../../:/lib/i686-pc-mingw32/3.4.4/:/lib/:/usr/lib/i68 6-pc-mingw32/3.4.4/:/usr/lib/ $ gcc-3 -v -E - </dev/null ignoring nonexistent directory "/usr/local/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/i686-pc-cygwin/3.4.4/include /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/include /usr/include /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/lib/../include/w32 api /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/lib/../../include/ w32api End of search list. # 1 "<stdin>" # 1 "<built-in>" # 1 "<command line>" # 1 "<stdin>" DKAdmin AT ubik ~ $ gcc-3 -v -mno-cygwin -E - </dev/null ignoring nonexistent directory "/usr/local/include/mingw" ignoring duplicate directory "/usr/include/mingw" ignoring duplicate directory "/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/lib/../../include/w32api" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/i686-pc-cygwin/3.4.4/include /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api End of search list. # 1 "<stdin>" # 1 "<built-in>" # 1 "<command line>" # 1 "<stdin>" > Is there a recommended alternative? As the others have said, a full-blown cross-compiler will DTRT everywhere. cheers, DaveK -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |