Board index » cppbuilder » Re: Compiler Version in CBuilder 2007

Re: Compiler Version in CBuilder 2007


2007-12-07 06:05:47 AM
cppbuilder50
Brian wrote:
Quote
How can I make

#if CompilerVersion>SOMENUMBER

work in C++Builder 2007

It appears that
#if CompilerVersion == 0

does work. This can't be.
CompilerVersion is a Delphi constant, defined in System.pas, and gives
you the version of the Delphi compiler. It is generally used in Delphi
source files.
I doubt that is what you want. I guess you want to do something like:
#if __BORLANDC__>0x0550
--
Rudy Velthuis [TeamB] www.teamb.com
"One morning I shot a bear in my pajamas. How it got into my
pajamas I'll never know."
-- Groucho Marx
 
 

Re:Re: Compiler Version in CBuilder 2007

How can I make
#if CompilerVersion>SOMENUMBER
work in C++Builder 2007
It appears that
#if CompilerVersion == 0
does work. This can't be.
Thanks
 

Re:Re: Compiler Version in CBuilder 2007

David Dean [CodeGear] wrote:
Quote
In article < XXXX@XXXXX.COM >,
"Rudy Velthuis [TeamB]" < XXXX@XXXXX.COM >wrote:

>I doubt that is what you want. I guess you want to do something
>like:
>
>#if BORLANDC>0x0550


0x0590 in the case of CB 2007. (592 with the current updates)
I know. I was merely giving an example from the source files.
--
Rudy Velthuis [TeamB] www.teamb.com
"Now, now my good man, this is no time for making enemies."
-- Voltaire (1694-1778) on his deathbed in response to a priest
asking that he renounce Satan.
 

{smallsort}

Re:Re: Compiler Version in CBuilder 2007

In article < XXXX@XXXXX.COM >,
"Rudy Velthuis [TeamB]" < XXXX@XXXXX.COM >wrote:
Quote
I doubt that is what you want. I guess you want to do something like:

#if __BORLANDC__>0x0550
0x0590 in the case of CB 2007. (592 with the current updates)
--
David Dean (CodeGear)
Lead C++ QA Engineer