[interfacekit] Re: Different compile errors with the same compilers

> Hi all!
> I just found why we have different errors/warnings, even if we use 
> the same 
> compilers.
> It depends on what we have linked "cc" to, since we use "cc" as build 
> tool 
> (which is a SymLink to the real compiler).
> For example: create a link from "c++" to "cc". You will have casts 
> from 
> const to non-const variables treated as errors.
> If you create a link from "gcc" to "cc", instead, the compiler won't 
> complain.

Actually what jam uses for compiling depends on two things: Jambase and 
the environment variable `CC'. The Jambase compiled into the jam 
executables available on BeBits (published by Eugenia) and DevCentral 
default to `gcc' (so does the one you can build from `src/tools/jam'). 
This default can be overridden by the environment variable `CC', which 
you usually don't want to set.

CU, Ingo



Other related posts: