From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25840 invoked by alias); 19 Oct 2006 20:30:53 -0000 Received: (qmail 25829 invoked by uid 22791); 19 Oct 2006 20:30:52 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.191) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 19 Oct 2006 20:30:49 +0000 Received: by nf-out-0910.google.com with SMTP id l24so1216876nfc for ; Thu, 19 Oct 2006 13:30:47 -0700 (PDT) Received: by 10.82.107.15 with SMTP id f15mr329588buc; Thu, 19 Oct 2006 13:30:46 -0700 (PDT) Received: by 10.82.182.3 with HTTP; Thu, 19 Oct 2006 13:30:46 -0700 (PDT) Message-ID: Date: Thu, 19 Oct 2006 20:30:00 -0000 From: "dave berk" To: gcc-help@gcc.gnu.org Subject: gcc 4.1.1 include order MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg00182.txt.bz2 Recently I compiled gcc 4.1.1 with minGW in windows according to the instructions here. Now, when I try to compile a test file that includes float.h I get the following errors: error: '_clear87' was not declared in this scope error: '_control87' was not declared in this scope I tried to run the file the -v -H flags: E:\temp>g++ -v -H main.cpp Using built-in specs. Target: mingw32 Configured with: ../gcc-4.1.1 /configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++ --disable-win32-registry --disable-shared --without-x Thread model: win32 gcc version 4.1.1 c:/mingw/bin/../libexec/gcc/mingw32/4.1.1/cc1plus.exe -quiet -v -iprefix c:\mingw\bin\../lib/gcc/mingw32/4.1.1/ -H main.cpp -quiet -dumpbase main.cpp -auxbase main -version -o C:\DOCUME~1\Dave\LOCALS~1\Temp/ccqWaaaa.s ignoring nonexistent directory "/mingw/include" ignoring nonexistent directory "C:/MinGW/mingw32/include" ignoring nonexistent directory "/mingw/include" #include "..." search starts here: #include <...> search starts here: c:/mingw/bin/../lib/gcc/mingw32/4.1.1/include C:/MinGW/include/c++/4.1.1 C:/MinGW/include/c++/4.1.1/mingw32 C:/MinGW/include/c++/4.1.1/backward C:/MinGW/include C:/MinGW/lib/gcc/mingw32/4.1.1/include End of search list. What seems to happen is that gcc searches the gcc system files first and not the "C:/MinGW/include". anyone knows why? and how can I change the order of the included files? Dave