I'm learning C++ on the PPP Bjarne Stroustrup book. In the four chapter, i realize the double imprecision problem and i started to look for some alternative (decimal type).
I found this libary, but my compiler show some errors in the lib file.
Description Resource Path Location Type
'::max' has not been declared chapter4.drill line 46, external location: C:\Users\GAMEOVER\Documents\Libaries\decimal_for_cpp-master\include\decimal.h C/C++ Problem
Description Resource Path Location Type
'numeric_limits' is not a member of 'std' chapter4.drill line 46, external location: C:\Users\GAMEOVER\Documents\Libaries\decimal_for_cpp- master\include\decimal.h C/C++ Problem
Description Resource Path Location Type
expected primary-expression before '>' token chapter4.drill line 46, external location: C:\Users\GAMEOVER\Documents\Libaries\decimal_for_cpp-master\include\decimal.h C/C++ Problem
You can see the 46 line here:
#ifndef DEC_NO_CPP11
#include <cstdint>
46. #define DEC_MAX_INT32 (std::numeric_limits<int32_t>::max())
#else
#ifndef DEC_EXTERNAL_LIMITS
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
#if defined(__GXX_EXPERIMENTAL_CXX0X) || (__cplusplus >= 201103L)
#include <cstdint>
#else
#include <stdint.h>
#endif
#endif
#define DEC_MAX_INT32 INT32_MAX
#endif
I'm using Eclipse with MiniGW (C++11)
Aucun commentaire:
Enregistrer un commentaire