Delphi各个版本的编译指令

两种方式使用版本编译指令:

1、{$IFDEF VER210}............{$ENDIF}

2、{$IF CompilerVersion>=18.5}//some code only compiled for Delphi 2007 and later{$IFEND}

http://delphi.wikia.com/wiki/Borland_Compiler_Conditional_Defines

Product NameVersion

Conditional Define

Embarcadero RAD Studio XE216.0VER230
Embarcadero RAD Studio XE15.0VER220
Embarcadero RAD Studio 201014.0VER210
CodeGear C++ Builder 200912.0VER200
CodeGear Delphi 2007 for .NET11.0VER190
CodeGear Delphi 2007 for Win3211.0VER180 and VER185
Borland Developer Studio 200610.0VER180
Borland Delphi 20059.0VER170
Borland Delphi 8 for .NET8.0VER160 *
C++BuilderX??
Borland C#Builder1.0VER160 *
Borland Delphi 77.0VER150
Borland Kylix 33.0VER140 **
Borland C++Builder 6?VER140 **
Borland Kylix 22.0VER140 **
Borland Delphi 66.0VER140 **
Borland Kylix1.0VER140 **
Borland C++Builder 5?VER130 ***
Borland Delphi 55.0VER130 ***
Borland C++Builder 4?VER125
Borland Delphi 44.0VER120
Borland C++Builder 3?VER110 ****
Borland Delphi 33.0VER100
Borland C++ 5??
Borland C++Builder 1?VER93
Borland Delphi 22.0VER90
Borland C++ 4.5??
Borland Delphi1.0VER80
Borland C++ 4??
Borland Pascal 77.0VER70
Borland C++ 3.1??
Turbo Pascal for Windows 1.51.5VER70
Turbo C++ for DOS 3??
Borland C++ 3??
Turbo C++ for Windows 3 (Win16)??
Turbo Pascal for Windows 1.01.0???
Borland C++ 2??
Turbo Pascal 66.0VER60
Turbo C++ for DOS??
Turbo C for DOS 2??
Turbo Pascal 5.55.5VER55
Turbo C for DOS 1.5??
Turbo Pascal 55.0VER50
Turbo Pascal 44.0VER40
Turbo C for DOS??
Turbo Pascal 33.0???
Turbo Pascal 22.0???
Turbo Pascal 11.0???

* This conditional define is shared by the Delphi compilers used to build C#Builder 1 and Delphi 8, which do not natively support Delphi for Win32. This define is used in the "IDE Integration Packs" that were released to Borland partners in order to allow IDE plugins like ModelMaker Code Explorer (http://www.modelmakertools.com/code-explorer/index.html) and Castalia (http://www.delphi-expert.com/castalia3) to be compiled.
** This conditional define is shared between C++Builder 6, Delphi 6, Kylix 1, 2, and 3 (Checking for the conditional define "LINUX" helps to determine whether the compiler is Kylix or Delphi and "BCB" can be used to determine if C++Builder is being used).
*** This conditional define is shared with C++Builder 5
**** C++Builder 3.0 used VER110 (it had its own version of the Delphi compiler included).

For C++Builder and Turbo C++ and Turbo C release dates, see CppBuilder Release Dates...

Note: Version 13.0 never released

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值