C
Hi,
ich versuche gerade etwas mit der Wiimote rumzuspielen.
Zu dem Zwecke habe ich mir die WiiYourself! Bibliothek geholt (http://wiiyourself.gl.tter.org/).
Jetzt hab ich versucht das Demoprogramm zu kompilieren, folgendes steht bei den Buildhinweisen:
Bezieht sich auf Microsofts WDK
- add its 'inc' and 'inc/api' dirs to your include paths
(make sure they are *above* other paths, ie. searched first)
- add its 'lib/win7/i386' dir to your library paths.
Notes:
- do _not_ add any 'STL' paths from the WDK/DDK as they can cause
build problems.
- the order of your include paths can be important. If you placed
them above the paths and are still getting compilation errors,
try moving them around.
- The library is Unicode-ready via <tchar.h> (see demo project).
- if you're not using VC you need to link with these libraries:
setupapi.lib
winmm.lib
hid.lib (from the DDK)
Also habe ich das WDK geladen, und die Include und Lib Verzeichnisse hinzugefügt.
Wenn ich das im Debug Modus kompilieren möchte kommt folgendes horrendes dabei raus:
1>------ Erstellen gestartet: Projekt: Demo, Konfiguration: Debug Win32 ------
1> wiimote.cpp
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\crtdefs.h(550): error C2065: '_In_opt_z_': nichtdeklarierter Bezeichner
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\crtdefs.h(550): error C2143: Syntaxfehler: Es fehlt ')' vor 'const'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\crtdefs.h(550): warning C4229: Anachronismus verwendet: Modifizierer der Daten werden ignoriert
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\crtdefs.h(550): error C2182: '_invoke_watson': Unzulässige Verwendung des Typs 'void'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\crtdefs.h(550): error C2495: "_invoke_watson": "__declspec(noreturn)" kann nur auf Funktionsdeklarationen oder Funktionsdefinitionen angewendet werden.
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\crtdefs.h(550): error C2491: '_invoke_watson': Definition von Daten für dllimport nicht zulässig
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\crtdefs.h(550): error C2059: Syntaxfehler: ')'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\excpt.h(56): error C2065: '_In_': nichtdeklarierter Bezeichner
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\excpt.h(56): error C2144: Syntaxfehler: '_EXCEPTION_RECORD' sollte auf ')' folgen
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\excpt.h(56): error C2448: '_except_handler': Funktionsstil-Initialisierung scheint eine Funktionsdefinition zu sein
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\excpt.h(57): error C2144: Syntaxfehler: 'void' sollte auf ';' folgen
Das ganze geht noch ewig weiter, bis die magischen 100 Fehler überschritten werden.
Ich nehme an, dass es an irgendeiner Headerdatei liegt, wo ein Semikolon fehlt oder so. Leider findet sich im Netz nur sehr wenig dazu, zu diesem speziellen Problem habe ich gar nichts gefunden.
Ich hoffe, hier hat das schonmal jemand ausprobiert oder kann mir spontan einen Hinweis liefern, wo das Problem sein könnte.
Danke schon mal fürs lesen und beschäftigen
Edit: Ich verwende Windows 7 und Visual Studio 2010