Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 6 Sep 2000 20:02:54 +0200 (MET DST) From: Marc Herbert To: cygwin AT sourceware DOT cygnus DOT com cc: Hubert DOT Garavel AT inrialpes DOT fr, Radu DOT Mateescu AT inrialpes DOT fr, mingw32 AT egroups DOT com Subject: weird mingw -isystem and -iwithprefixbefore in cygnus "gcc/config/i386/cygwin.h" Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Hi, The option -mno-cygwin of cygwin/gcc 2.95.2 does not work anymore as soon as its installation is not 400% standard (ie when some base directory changes): it does not give priority to mingw headers anymore, but then wrongly includes cygwin headers first. Why ? just have a look at line 98 in file gcc/config/i386/cygwin.h You'll see this : #define CPP_SPEC "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} \ %{!mno-cygwin:-D__CYGWIN32__ -D__CYGWIN__ -Dunix} \ %{!mno-win32:-D_WIN32 -DWINNT} \ %{mno-win32: %{mno-cygwin: %emno-cygwin and mno-win32 are not compatible}} \ %{mno-cygwin:-DWIN32 -D__WIN32__ -D__MINGW32__=0.2 \ %{mthreads:-D_MT} \ -isystem /usr/include/mingw32 \ -isystem /usr/include/mingw \ -iwithprefixbefore ../../../../mingw/include/g++-3 \ -iwithprefixbefore ../../../../mingw/include }" At least the hard paths "/usr/include/mingw" in -isystem seem suspects. The mingw/include is also quite strange. Neither point to something useful if the installation dir is not standard. I'd really like to give a patch, but unfortunately, I am no expert in CPP options, and I would surely invent something wrong. I quickly tried things like : -iwithprefixbefore ../../../../i386-pc-cygwin32/include/mingw But it does not work. I thinks someone familiar with CPP and cygwin directory organization could write the patch in one minute. If I am all right, then I would be incredibly happy to see this patch (private mail copy welcome). Thanks in advance. PS : good pointers to information on this subject are also welcome Sincerely, -- Marc Herbert | GIE Dyade (Bull/INRIA) Marc DOT Herbert AT inria DOT fr | http://www.dyade.fr/ tel: +33 4 7661 5258 | VASY Project fax: +33 4 7661 5252 | http://www.inrialpes.fr/vasy -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com