Return to Website   
Quantum Leaps Discussion Forum

Search the Forum for answers or post your questions to the
Quantum Leaps community



Return to Website

  Reply
  Forum

Subject:   Re: Error on library´s include.
Name:   Miro Samek
Date Posted:   Mar 25, 08 - 5:35 PM
Email:   miro@quantum-leaps.com
Website:   http://www.quantum-leaps.com
Message:   Visual C++ does not provide the standard exact-with integer types (WG14/N843 C99 Standard, Section 7.18) defined in .

An easy way to fix it is by creating the stdint.h file and placing it in the include directory of your compiler, or just in the \tools\qspy\win32\vc6\ directory.

Here is a minimal stdint.h file for VC++ (works for VC++ 6.0 and VC++ 2005):


/***
*stdint.h - WG14/N843 C99 Standard, Section 7.18
*
*
*Purpose:
* This header is part of the ANSI C99 standard library. It
* describes a number of useful integer types.
* This file is not part of the original Visual C++ distribution,
* which preceded the C99 standard.
*
* Currently, this file contains only the exact-width integer types
* and constants (see C99 Section 7.18.1.1)
*
* [Public]
*
****/

#if _MSC_VER > 1000
#pragma once
#endif

#ifndef _INC_STDINT
#define _INC_STDINT

#if !defined(_WIN32) && !defined(_MAC)
#error ERROR: Only Mac or Win32 targets supported!
#endif

#ifdef __cplusplus
extern "C" {
#endif

/* Exact-width types. WG14/N843 C99 Standard, Section 7.18.1.1 */
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed long int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned long uint32_t;

#ifdef __cplusplus
}
#endif

#endif /* _INC_STDINT */



Please simply cut-and-paste this source into the stdint.h file.

Thank you for pointing this out. A fix for this will be provided in the new QP 3.5.


Miro
   


  Reply
  Forum


powered by Powered by Bravenet bravenet.com