[spirit][1.33.1] MinGW+STLport errors...

In this error http://tinyurl.com/8sqq6 [1] -- There is a use of swprintf(wchar_t*, size_t, const wchar_t*, ...). But AFAICT it's not "swprintf" that's the intended call, but "snwprintf" which takes a buffer length as the second arg. [1] http://engineering.meta-comm.com/boost-regression/CVS-RC_1_33_0/developer/ou... -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org

Rene Rivera wrote:
In this error http://tinyurl.com/8sqq6 [1] -- There is a use of swprintf(wchar_t*, size_t, const wchar_t*, ...). But AFAICT it's not "swprintf" that's the intended call, but "snwprintf" which takes a buffer length as the second arg.
swprintf does take a buffer length as its second argument.

Peter Dimov wrote:
Rene Rivera wrote:
In this error http://tinyurl.com/8sqq6 [1] -- There is a use of swprintf(wchar_t*, size_t, const wchar_t*, ...). But AFAICT it's not "swprintf" that's the intended call, but "snwprintf" which takes a buffer length as the second arg.
swprintf does take a buffer length as its second argument.
OK, I see that now from reading... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/... So it's a problem with MinGW, and indirectly with STLport. Too bad we don't have a boost/cstdio.hpp to fix such things. Perhaps I should go bother the STLport folks about it then :-) -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org

Rene Rivera wrote:
Peter Dimov wrote:
Rene Rivera wrote:
In this error http://tinyurl.com/8sqq6 [1] -- There is a use of swprintf(wchar_t*, size_t, const wchar_t*, ...). But AFAICT it's not "swprintf" that's the intended call, but "snwprintf" which takes a buffer length as the second arg.
Double checking... BOOST_NO_SWPRINTF is defined for mingw, so we just need to get Spirit to use it :-) John.

In this error http://tinyurl.com/8sqq6 [1] -- There is a use of swprintf(wchar_t*, size_t, const wchar_t*, ...). But AFAICT it's not "swprintf" that's the intended call, but "snwprintf" which takes a buffer length as the second arg.
It does take a buffer length, note that we have BOOST_NO_SWPRINTF to indicate the non-conforming MS version, does spirit check for this? If so we should set it for Mingw it appears. John.
participants (3)
-
John Maddock
-
Peter Dimov
-
Rene Rivera