nethacker
Messages postés288Date d'inscriptionmardi 2 mai 2006StatutMembreDernière intervention12 octobre 2011
-
30 nov. 2006 à 13:24
nethacker
Messages postés288Date d'inscriptionmardi 2 mai 2006StatutMembreDernière intervention12 octobre 2011
-
23 janv. 2007 à 13:28
salut tout le monde,
je voulais compiler mon projet et une fenetre nommé idcompilerdefines.inc qui est lié aux composants indy bien entendu surgit et montre qu'il y'a un bug,
voila le code
<hr size="2" width="100%" /> General
// Make this $DEFINE to use the 16 color icons required by Borland
// or DEFINE to use the 256 color Indy versions
{DEFINE Borland}
//Widget defines are for the design-time GUI and TIdAntiFreeze
// S.G. 4/9/2002: IPv4/IPv6 general switch (for defaults only)
{$DEFINE IdIPv4}
//Delphi.NET
// Covers D8+
{$IFDEF CIL}
// Platform specific conditional. Used for platform specific code.
{$DEFINE DotNet}
// Extra include used in D7 for testing. Remove later when all comps are
// ported. Used to selectively exclude non ported parts. Allowed in places
// IFDEFs are otherwise not permitted.
{$DEFINE DotNetExclude}
{$define i386}
{$define ENDIAN_LITTLE}
{$define CPU32}
{$define WidgetWinForms}
{$ENDIF}
// FPC (2+)
{$IFDEF FPC}
{$MODE Delphi}
{$IFDEF UNIX}
{$IFDEF LINUX}
//In Linux, you can either use USELIBC or USEBASEUNIX.
//If you choose USELIBC, you need to modify the Makefile.fpc in
//in the System folder and generate the Makefile (preferably with the
//complete source tree.
{.$DEFINE USELIBC}
{$DEFINE USEBASEUNIX}
{$ELSE}
{$DEFINE USEBASEUNIX}
{$ENDIF}
{$ENDIF}
{$IF defined(win32) or defined(win64)}
{$define win32_or_win64}
{$ifend}
//so we can use IdWinsock2 in WinCE, maybe in other places in Indy as well -CYA
{$IF defined(wince)}
{$DEFINE UNICODE} //CE is UNICODE ONLY
{$define win32_or_win64_or_winCE}
{$ENDIF}
{$DEFINE VCL4ORABOVE}
{$DEFINE VCL5ORABOVE}
{$DEFINE VCL6ORABOVE}
{$DEFINE VCL7ORABOVE}
{$DEFINE VCL70}
{$DEFINE DELPHI7}
{$DEFINE OPTIONALPARAMS}
{$DEFINE SAMETEXT}
{$DEFINE ALLOW_NAMED_THREADS}
{$DEFINE NO_TMultiReadExclusiveWriteSynchronizer}
{$DEFINE FPC_REINTRODUCE_BUG}
{$DEFINE FPC_CircularBug}
{$DEFINE NoRedeclare}
{$DEFINE ByteCompareSets}
{$ENDIF}
// Kylix
//
//Important: Don't use CompilerVersion here as
// $ IF's are evaluated before $ IFDEF's
//and Kylix 1 does not have CompilerVersion defined at all.
{$IFNDEF FPC}
{$IFDEF LINUX}
{$DEFINE USELIBC}
{$DEFINE UNIX}
{$IFDEF CONDITIONALEXPRESSIONS}
{$IF RTLVersion = 14.0}
{$DEFINE KYLIX1}
{$DEFINE KYLIX}
{$DEFINE KYLIX1ORABOVE}
{$IFEND}
{$IF RTLVersion = 14.2}
{$DEFINE KYLIX2}
{$DEFINE KYLIX}
{$DEFINE USEZLIBUNIT}
{$DEFINE KYLIX1ORABOVE}
{$DEFINE KYLIX2ORABOVE}
{$IFEND}
{$IF RTLVersion = 14.5}
{$DEFINE KYLIX3}
{$DEFINE KYLIX}
{$DEFINE USEZLIBUNIT}
{$DEFINE KYLIX1ORABOVE}
{$DEFINE KYLIX2ORABOVE}
{$DEFINE KYLIX3ORABOVE}
{$IFEND}
cs_Kenavo
Messages postés702Date d'inscriptionvendredi 21 mars 2003StatutMembreDernière intervention 1 octobre 20095 30 nov. 2006 à 17:23
Salut,
A chaque {$IFDEF xxx} ou {$IFNDEF xxx} tu dois avoir {$ENDIF}; à Chaque {$IF xxx} tu dois avoir un {$IF END}
{$IFDEF FPC}
{$MODE Delphi}
{$IFDEF UNIX}
{$IFDEF LINUX}
//In Linux, you can either use USELIBC or USEBASEUNIX.
//If you choose USELIBC, you need to modify the Makefile.fpc in
//in the System folder and generate the Makefile (preferably with the
//complete source tree.
{.$DEFINE USELIBC}
{$DEFINE USEBASEUNIX}
{$ELSE}
{$DEFINE USEBASEUNIX}
{$ENDIF}
{$ENDIF}
{$IF defined(win32) or defined(win64)}
{$define win32_or_win64}
{$ifend}
//so we can use IdWinsock2 in WinCE, maybe in other places in Indy as well -CYA
{$IF defined(wince)}
{$DEFINE UNICODE} //CE is UNICODE ONLY
{$define win32_or_win64_or_winCE}
{$ENDIF} <-------------- Là peut-être $ifend
{$DEFINE VCL4ORABOVE}
{$DEFINE VCL5ORABOVE}
{$DEFINE VCL6ORABOVE}
{$DEFINE VCL7ORABOVE}
{$DEFINE VCL70}
{$DEFINE DELPHI7}
{$DEFINE OPTIONALPARAMS}
{$DEFINE SAMETEXT}
{$DEFINE ALLOW_NAMED_THREADS}
{$DEFINE NO_TMultiReadExclusiveWriteSynchronizer}
{$DEFINE FPC_REINTRODUCE_BUG}
{$DEFINE FPC_CircularBug}
{$DEFINE NoRedeclare}
{$DEFINE ByteCompareSets}
{$ENDIF}
phephelavi
Messages postés40Date d'inscriptionmardi 16 mai 2006StatutMembreDernière intervention27 octobre 2009 14 janv. 2007 à 11:16
Bonjour à tous,
A propos du fichier idCompilerDefines.inc, j'ai un problème différent : Delphi 2005 ne le trouve pas et me le demande. J'ai pourtant Indy version 10 d'installé, donc je ne peux pas installer un composant qui a besoin de ce fichier.
Savez-vous où il se trouve et que dois-je faire pour solutionner ce problème ?