[3h]: Delphi 6 - Unit '<element>' is specific to a platform(25分)

  • 主题发起人 主题发起人 3h
  • 开始时间 开始时间
3

3h

Unregistered / Unconfirmed
GUEST, unregistred user!
在D6里有这样的问题,代码是没的问题的,但是会出现这样的警告:
[Warning] MAIN.pas(1273): Symbol 'faVolumeID' is specific to a platform
这是正式的提示,帮助里的是:
Unit '<element>' is specific to a platform
了老半天英文,不是很明白:
The whole unit is tagged (using the platform hint directive) as one that contains
material that may not be available on all platforms. If you are writing
cross-platform applications, it may cause a problem. For example, a unit that uses
objects defined in OleAuto might be tagged using the PLATFORM directive

The $WARN UNIT_PLATFORM ON/OFF compiler directive turns on or off all warnings
about the platform directive in units where the platform directive is specified.

哪位兄弟能否告诉我
1、详细起因
2、怎么解决
 
是指无法在Linux下编译,只能用在windows平台下
 
GOOD:)
 
后退
顶部