| View previous topic :: View next topic |
| Author |
Message |
Atmapuri Guest
|
Posted: Mon Dec 26, 2005 6:20 pm Post subject: Getting the C++compiler version... |
|
|
Hi!
How do i determine with which BCB compiler is the
C++ code being compiled?
Thanks!
Atmapuri
|
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Mon Dec 26, 2005 6:49 pm Post subject: Re: Getting the C++compiler version... |
|
|
Atmapuri wrote:
| Quote: | Specifically I would like to differentiate between BCB6
and BDS2006
|
On the command line ?
Jonathan
http://jomitech.com/mtbcc32.shtml - Multi-threaded compilation for BCB
http://jomitech.com/forum - JomiTech Forums
|
|
| Back to top |
|
 |
Atmapuri Guest
|
Posted: Mon Dec 26, 2005 7:20 pm Post subject: Re: Getting the C++compiler version... |
|
|
Hi!
| Quote: | Specifically I would like to differentiate between BCB6
and BDS2006
On the command line ?
|
When I use the command line, I know the compiler I am calling.
When a user compiles my code, I dont. There should be some
global compiler defines, but dont know their names...
Thanks!
Atmapuri
|
|
| Back to top |
|
 |
Darko Miletic Guest
|
Posted: Mon Dec 26, 2005 7:38 pm Post subject: Re: Getting the C++compiler version... |
|
|
Atmapuri wrote:
| Quote: | Hi!
How do i determine with which BCB compiler is the
C++ code being compiled?
|
Using variable __BORLANDC__ . This variable holds version of compiler.
Here are some values:
BDS 2006 (__BORLANDC__ >= 0x0580) && (__BORLANDC__ < 0x0590)
Kylix (__BORLANDC__ >= 0x0570) && (__BORLANDC__ < 0x0580)
BCB 6 - (__BORLANDC__ >= 0x0560) && (__BORLANDC__ < 0x0570)
BCB 5/Free compiler -
(__BORLANDC__ >= 0x0550) && (__BORLANDC__ < 0x0560)
|
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Mon Dec 26, 2005 7:40 pm Post subject: Re: Getting the C++compiler version... |
|
|
Atmapuri wrote:
| Quote: | When I use the command line, I know the compiler I am calling.
When a user compiles my code, I dont. There should be some
global compiler defines, but dont know their names...
|
Try __BORLANDC__
Jonathan
http://jomitech.com/mtbcc32.shtml - Multi-threaded compilation for BCB
http://jomitech.com/forum - JomiTech Forums
|
|
| Back to top |
|
 |
AlisdairM(TeamB) Guest
|
Posted: Wed Dec 28, 2005 6:41 pm Post subject: Re: Getting the C++compiler version... |
|
|
"Jonathan Benedicto" <incorrect (AT) no (DOT) server> wrote:
Specifically, the __BORLANDC__ marco is predefined whenever you compile with a borland compiler. Its value gives you the compiler version.
Common values:
0x551 -> Free command line compiler / patched BCB5
0x560 -> Unpatched BCB6
0x564 -> Fully patched BCB6 (0x561 and 0x562 also observed)
0x570 -> Kylix
0x580 -> BDS 2006 preview compiler
0x581 -> BDS2006 Update 1
0x600 -> EDG preview compiler, with CBuilderX
AlisdairM(TeamB)
|
|
| Back to top |
|
 |
|