Cfitsio Error in VC ++ 6.0
I am interfacing two software among which one is using sfits library for processing the fits images , when compile the program it shows error in XLOCALE file,which recides in vc98 / include folder , im using vc 6.0 with XP ,
error : error C2955: 'ctype' : use of class template requires template argument list C:\Program Files\Microsoft Visual Studio6\VC98\INCLUDE\xlocale(513) : see declaration of 'ctype'
error is pointing to line : int fits_get_compression_type(fitsfile *fptr, int *ctype, int *status);
and in XLOCALE file its pointing to :
template<class _E>
class ctype : public ctype_base {
public:
typedef _E char_type;
ctype(const _Locinfo& _Lobj, size_t _R = 0)
: ctype_base(_R) {_Init(_Lobj); }
static size_t __cdecl _Getcat()
{return (_LC_CTYPE); }
_PROTECTED:
virtual ~ctype()
{if (_Ctype._Delfl)
free((void *)_Ctype._Table); }
protected:
开发者_JAVA技巧 virtual const _E *do_narrow(const _E *_F, const _E *_L,
char, char *_V) const
{for (; _F != _L; ++_F, ++_V)
*_V = (char)_NARROW(_E, *_F);
return (_F); }
private:
_Locinfo::_Ctypevec _Ctype;
};
template<class _E>
locale::id ctype<_E>::id;
Thanks in advance...
ctype is a template for a type, not a type itself. Your parameter would have to be ctype<char>
or ctype<wchar_t>
depending on what character type you use.
精彩评论