Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros entornos y lenguajes > C++ Builder
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 27-06-2011
noob noob is offline
Miembro
 
Registrado: sep 2008
Posts: 212
Poder: 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
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Filtro no reconoce N° 9!!! Lenny Varios 2 22-07-2010 04:18:47
no reconoce disco scsi sierraja Linux 5 30-08-2007 17:27:25
no reconoce uses propias Xana Varios 1 13-03-2007 18:17:55
No me reconoce variable en la consulta JoanKa Varios 6 27-01-2005 15:23:29
No reconoce funciones jhonny PHP 3 15-09-2003 10:05:29


La franja horaria es GMT +2. Ahora son las 07:55:51.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi