Ver Mensaje Individual
  #11  
Antiguo 23-05-2020
Avatar de aguml
aguml aguml is offline
Miembro
 
Registrado: may 2013
Posts: 885
Reputación: 11
aguml Va por buen camino
He mirado en winnt como define DECLSPEC_ALIGN(n) y vi esto:

Código PHP:
#ifndef DECLSPEC_ALIGN
#if (_MSC_VER >= 1300) && !defined(MIDL_PASS) && !defined(__CODEGEARC__)
#define DECLSPEC_ALIGN(x)   __declspec(align(x))
#elif defined(__clang__) && !defined(MIDL_PASS)
#define DECLSPEC_ALIGN(x)   __attribute__((aligned(x)))
#else
#define DECLSPEC_ALIGN(x)
#endif
#endif 
Así que para probar si el problema podía venir por ahí he hecho esto antes de usar la cabecera winnt.h:

Código PHP:
#ifndef THiloDebuggerH
#define THiloDebuggerH
//---------------------------------------------------------------------------

#ifdef DECLSPEC_ALIGN
    #undef DECLSPEC_ALIGN
#endif
#define DECLSPEC_ALIGN
#define DECLSPEC_ALIGN(x)   __declspec(align(x))

#include <Classes.hpp>
#include <winnt.h>
#include <SyncObjs.hpp> 
Pero aun con esto me sigue dando el mismo error . Ya no se que mas mirar
Entonces coloqué el siguiente codigo antes de la cabecera de winnt.h:

Código PHP:
#if (_MSC_VER >= 1300) && !defined(MIDL_PASS) && !defined(__CODEGEARC__)
#define VALOR 1
#elif defined(__clang__) && !defined(MIDL_PASS)
#define VALOR 2
#else
#define VALOR 3
#endif 
Y mi sorpresa es que me muestra el 2 aunque yo lo haya definido antes así que hice esto:

Código PHP:
#define _MSC_VER 1300
#undef MIDL_PASS
#undef __CODEGEARC__ 
Y ahora me muestra el 1 pero ni así consigo librarme del error 998.

Necesito vuestra ayuda

Última edición por aguml fecha: 23-05-2020 a las 11:33:42.
Responder Con Cita