Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IdAntiFreezeBase.pas(180): F2051 IdIOHandlerSocket different version
#4
In the meantime, i've done some more research. The issue occurs, because the declaration in an Interface section is changed. In the Indy files, the pas files have an {I IdCompilerDefines.in} as the Interface section. But because in Indy 10 the sources are split into Core, Protocols and System directory, now 3 files IdCompilerDefines.inc.

But because all units should have the same interface, the 3 IdCompilerDefines IMHO needs to be identical. But they are not identical:

Protocols\IdCompilerDefines.inc
1365 {$IFDEF WIN32_OR_WIN64}
{ DEFINE USE_OPENSSL}
{$DEFINE USE_ZLIB_UNIT}
{$IFNDEF DCC_NEXTGEN}
{$DEFINE USE_OPENSSL} // !!! MOVED HERE BY EMBT
{$DEFINE USE_SSPI}
{$IFDEF STRING_IS_UNICODE}
{$DEFINE SSPI_UNICODE}
{$ENDIF}
{$ENDIF}
{$ENDIF}

Core\IdCompilerDefines.inc
465 {$IFDEF FPC_2_7_1_OR_ABOVE}
{.$MODE DelphiUnicode}
{.$MODESWITCH UnicodeStrings}
{$ENDIF}

This are 2 places, where the files are not identical to both others.

Erwin
Reply


Messages In This Thread
RE: IdAntiFreezeBase.pas(180): F2051 IdIOHandlerSocket different version - by erwinmars - 06-17-2018, 02:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)