delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/15/11:36:46

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
Message-ID: <000701c5a1af$04ba8ad0$cf34000a@sven>
From: "Angel Tsankov" <fn42551 AT fmi DOT uni-sofia DOT bg>
To: "Pavel Tsekov" <ptsekov AT gmx DOT net>
Cc: "cygwin mailing list" <cygwin AT cygwin DOT com>
References: <003801c5a158$6bf15820$cf34000a AT sven> <Pine DOT CYG DOT 4 DOT 58 DOT 0508151453230 DOT 1288 AT mordor> <000701c5a1a6$d9a3f050$cf34000a AT sven>
Subject: Re: g++ defines for win32
Date: Mon, 15 Aug 2005 18:35:49 +0300
MIME-Version: 1.0
X-IsSubscribed: yes

Angel Tsankov
fn42551 AT fmi DOT uni-sofia DOT bg
----- Original Message ----- 
From: "Angel Tsankov" <fn42551 AT fmi DOT uni-sofia DOT bg>
To: "Pavel Tsekov" <ptsekov AT gmx DOT net>
Cc: "cygwin mailing list" <cygwin AT cygwin DOT com>
Sent: Monday, August 15, 2005 5:37 PM
Subject: Re: g++ defines for win32


> ----- Original Message ----- 
> From: "Pavel Tsekov" <ptsekov AT gmx DOT net>
> To: "Angel Tsankov" <fn42551 AT fmi DOT uni-sofia DOT bg>
> Cc: "cygwin mailing list" <cygwin AT cygwin DOT com>
> Sent: Monday, August 15, 2005 3:04 PM
> Subject: Re: g++ defines for win32
>
>
>> 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/
>>
>>
> I think I fixed my code. Thanks!
>
> Now, I have the following notices to make.
>
> The gcc manual also says:
> [...]
> CPATH
> C_INCLUDE_PATH
> CPLUS_INCLUDE_PATH
> OBJC_INCLUDE_PATH
> Each variable's value is a list of directories separated by a 
> special character, much like PATH, in which to look for header 
> files. The special character, PATH_SEPARATOR, is target-dependent 
> and determined at GCC build time. For Microsoft Windows-based 
> targets it is a semicolon, and for almost all other targets it is a 
> colon.
> [...]
>
> As far as I can get this, it implies that the environment variables 
> mentioned there should contain semicolon separated folders. This is 
> on Microsoft Windows. And right on that platform I have to use colon 
> separated folders for these variables to work at all. I know that 
> this is might seem a little off-topic at first, but from my point of 
> view it is not - both problems relate to the CPLUS_INCLUDE_PATH 
> variable.
>
> And finally, your suggestion about using CPATH instead of 
> CPLUS_INCLUDE_PATH just does NOT work You could check this yourself.

Well, it turns out your suggestion to use CPATH instead of 
CPLUS_INCLUDE_PATH is a good one.
Just CPATH does not do what I at first expected.

>
> Besh wishes,
> Angel Tsankov
> fn42551 AT fmi DOT uni-sofia DOT bg
>
> --
> 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/
>
>
> 


--
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