Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authenticated: #14308112 Date: Mon, 15 Aug 2005 15:04:21 +0300 From: Pavel Tsekov X-X-Sender: ptsekov AT mordor To: Angel Tsankov cc: cygwin mailing list Subject: Re: g++ defines for win32 In-Reply-To: <003801c5a158$6bf15820$cf34000a@sven> Message-ID: References: <003801c5a158$6bf15820$cf34000a AT sven> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Y-GMX-Trusted: 0 X-IsSubscribed: yes Hello, On Mon, 15 Aug 2005, Angel Tsankov wrote: > Here's the test case. Execute the run.bat file to perform the test. > Hmm, it seams that I cannot send zip files as attachments. So you may > download the test case from > http://debian.fmi.uni-sofia.bg/~angel/test_case.zip > and run run.bat to execute it. The description of `CPATH', `C_INCLUDE_PATH', `CPLUS_INCLUDE_PATH' and `OBJC_INCLUDE_PATH' from the gcc info manual says: [...] `CPATH' specifies a list of directories to be searched as if specified with `-I', but after any paths given with `-I' options on the command line. This environment variable is used regardless of which language is being preprocessed. The remaining environment variables apply only when preprocessing the particular language indicated. Each specifies a list of directories to be searched as if specified with `-isystem', but after any paths given with `-isystem' options on the command line. [...] The cause of the warnings that you see is that by the time defs.h is parsed (last in the search path) some system header file already defined the symbols __cdecl, __stdcall and __fastcall. So what are you looking for is not `CPLUS_INCLUDE_PATH' but `CPATH'. Obviously you also have to fix your include file to behave properly when __cdecl, __stdcall and __fastcall are already defined. -- 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/