Problems building svsutil.hxx in Windows Mobile SDK
If you try to build svsutil.hxx on certain versions of the Windows Mobile SDK, you may run into build errors. I know it's on WM5 SDK at a minimum, I don't know about WM6 SDK.
The error you'll see will complain about the methods int operator==(int iBit) and int operator==(SVSBitField &bf) in the class SVSBitField in particular. What happened is that the compiler got a bit more picky at some point but the SDK headers weren't updated to reflect this in the given SDK version. We have fixed this in latest & greatest svsutil.hxx.
If you run into this, what you'll need to do is change the initial
for (int i = 0 ; i < m_iWLength - 1 ; ++i) {
So that the 'int i' is outside the for loop, namely:
int i;
for (i = 0 ; i < m_iWLength - 1 ; ++i) {
Our apologies to anyone who hits this.
John
Comments
- Anonymous
May 12, 2008
This happens if we are using Wnce 5.0 as well, int this case saved the file wih declaring int i whereever required . and derived my class with it