Ver Mensaje Individual
  #1  
Antiguo 27-06-2011
noob noob is offline
Miembro
 
Registrado: sep 2008
Posts: 212
Reputación: 16
noob Va por buen camino
Question El compilador no reconoce UInt64

Hola,

Estoy tratando de compilar una librería pero me da un error porque no reconoce UInt64. Esta es la parte de código que da problemas:

Código Delphi [-]
{$IFNDEF GLS_DELPHI_7_DOWN}
  GLuint64 = UInt64;
  TGLuint64 = UInt64;
  PGLuint64 = ^TGLuint64;

  GLuint64EXT = UInt64;
  TGLuint64EXT = UInt64;
  PGLuint64EXT = ^TGLuint64EXT;
{$ELSE}
  // fake UInt64 by using Int64 for Delphi5 + 6
  GLuint64 = Int64;
  TGLuint64 = Int64;
  PGLuint64 = ^TGLuint64;

  GLuint64EXT = Int64;
  TGLuint64EXT = Int64;
  PGLuint64EXT = ^TGLuint64EXT;
{$ENDIF}

lo reemplazo por lo siguiente y no da problemas:

Código Delphi [-]
//{$IFNDEF GLS_DELPHI_7_DOWN}
  {GLuint64 = UInt64;
  TGLuint64 = UInt64;
  PGLuint64 = ^TGLuint64;

  GLuint64EXT = UInt64;
  TGLuint64EXT = UInt64;
  PGLuint64EXT = ^TGLuint64EXT;}
//{$ELSE}
  // fake UInt64 by using Int64 for Delphi5 + 6
  GLuint64 = Int64;
  TGLuint64 = Int64;
  PGLuint64 = ^TGLuint64;

  GLuint64EXT = Int64;
  TGLuint64EXT = Int64;
  PGLuint64EXT = ^TGLuint64EXT;
//{$ENDIF}

Estoy usando Borland C++ Builder 6, ¿no debería meterse por el $ELSE y no por $IFNDEF GLS_DELPHI_7_DOWN? ¿En qué parte se define la directiva del compilador GLS_DELPHI_7_DOWN?

Gracias.

Última edición por noob fecha: 27-06-2011 a las 12:20:35.
Responder Con Cita