question about g++ errors when compiling

Sorry for the dumb question, but I’m trying to compile jinput from cvs, in case I need to add some things for my own app.
I 'm getting errors with a couple of the switch-case statements in the directx plugin input.cpp file, and wasn’t sure if I needed to change something with my g++ or what. I installed mingw 5.0.2 on windows xp, and I’m using the latest directx sdk (feb 2006).

Also I didn’t know if you would want to include jutils.jar in the cvs repository or not since jinput depends on it.

Great work on jinput though!

compile:
[exec] src/native/input.cpp: In function BOOL EnumObjectsCallback(const DIDEVICEOBJECTINSTANCE*, void*)': [exec] src/native/input.cpp:842: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression [exec] src/native/input.cpp:842: error: '->' cannot appear in a constant-expression [exec] src/native/input.cpp:842: error: &’ cannot appear in a constant-expression
[exec] src/native/input.cpp:846: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression
[exec] src/native/input.cpp:846: error: ‘->’ cannot appear in a constant-expression
[exec] src/native/input.cpp:846: error: &' cannot appear in a constant-expression [exec] src/native/input.cpp:850: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression ......(snip)......... [exec] src/native/input.cpp: In function jboolean Java_net_java_games_input_DirectInputMouse_pollNative(JNIEnv*, _jobject*, jlong, _jbyteArray*)’:
[exec] src/native/input.cpp:1350: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression
[exec] src/native/input.cpp:1350: error: ‘->’ cannot appear in a constant-expression
[exec] src/native/input.cpp:1350: error: &' cannot appear in a constant-expression [exec] src/native/input.cpp:1355: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression [exec] src/native/input.cpp:1355: error: '->' cannot appear in a constant-expression [exec] src/native/input.cpp:1355: error: &’ cannot appear in a constant-expression
[exec] src/native/input.cpp:1360: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression

What version of mingw and g++ are people using?
I have mingw 5.0.2 and g++ 3.4.2

I downgraded and got the same error.
I’m interested in adding a spring force feedback effect to input.cpp (DICONDITION instead of DICONSTANT).

I guess it was a change with switch statements between gcc 2 and gcc 3. I have it compiling now.
I see this other version does the directx stuff completely differently, so I’ll try that too.
http://download.oddlabs.com/oss_svnroot/sun/jinput/plugins/windows/src/native/

There is a jutils error, it tries to load
net/java/games/input/DirectInputEnvironmentPlugin
It should have replaced the slashes with periods (.).
I guess that requires fixing jutils.