stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Pevtsov" <Ant...@moscow.vdiweb.com>
Subject stdcxx compilation problems (MSVC 7.1)
Date Thu, 02 Feb 2006 15:42:59 GMT
There are two problems with the stdcxx current svn version compilation:

1. File src\wcodecvt.cpp, line 665:

...
	#ifndef _RWSTD_NO_WCRTOMB
	    ret = wcrtomb (tmp, wchar_t (0), &state);
	#elif !defined (_RWSTD_NO_WCTOMB)
	    ret = wcrtomb (tmp, wchar_t (0));              <-- looks
like a typo.
	#else
	    ret = _RWSTD_SIZE_MAX;
	#endif
...

This code fails to compile, I guess here should be:

...
	#ifndef _RWSTD_NO_WCRTOMB
	    ret = wcrtomb (tmp, wchar_t (0), &state);
	#elif !defined (_RWSTD_NO_WCTOMB)
	    ret = wctomb (tmp, wchar_t (0));              
	#else
	    ret = _RWSTD_SIZE_MAX;
	#endif
...

2. File tests\src\alg_test.cpp, line 32:

...
	#include <alg_test.h>
	#include <snprintfa.h>
...

There is no header named "snprintfa.h" in tests\include. So I guess here
should be:

...
	#include <alg_test.h>
	#include <printf.h>
...


With best wishes,
Anton Pevtsov

Mime
View raw message