delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/15/08:03:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <ptsekov AT gmx DOT net>
X-X-Sender: ptsekov AT mordor
To: Angel Tsankov <fn42551 AT fmi DOT uni-sofia DOT bg>
cc: cygwin mailing list <cygwin AT cygwin DOT com>
Subject: Re: g++ defines for win32
In-Reply-To: <003801c5a158$6bf15820$cf34000a@sven>
Message-ID: <Pine.CYG.4.58.0508151453230.1288@mordor>
References: <003801c5a158$6bf15820$cf34000a AT sven>
MIME-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019