Game Development Community

Xinput.h no such file

by Tim Tebow · in Torque Game Engine Advanced · 05/01/2008 (4:29 pm) · 10 replies

Alright having a problem getting it to compile on vs 2005 standard. Im pretty familure with how vs works so im 99% confident I have everything linked fine.

I have also searched the forumns, found results but none help....

I have the newest dx9 sdk but still cannot find the xinput.h file does anyone know where I can download this file from? It seams HP has a xinput.h file and thats all I was finding.

Thanks for any tips/advice

#1
05/01/2008 (4:54 pm)
Did you add the DirectX folders to your Visual Studio Include and Library paths (covered in the Getting Started doc)?
#2
05/01/2008 (6:06 pm)
They included the Windows SDK in VC2008 Express directly.

You could add the Include and Library files for the Windows SDK like you did for the DirectX SDK (I thought that was also in the docs).
#3
05/02/2008 (5:55 am)
Do a clean and rebuild on the solution. If that doesn't do it delete the out folders then rebuild.
#4
05/02/2008 (1:46 pm)
Which Windows SDK are you using?
#5
05/02/2008 (3:27 pm)
I might have found my problem as I think I skipped part of the documentation. The part saying that no longer use the platform sdk and use just regular windows sdk. Which would be why i responded above with no didnt see that part. So im downloading what it has on its links and hope it works :)
#6
05/02/2008 (9:07 pm)
Alright going to be updating this as I followed word for word the documentation and still getting the same errors that I did when I had a older version of the windows sdk. Any help with these errors would be lovely. I have the same issue no matter what demo game I try to compile.

Thanks,
Austin

fyi - I deleted alot of the post so people would read this ive noticed once the post starts getting long people accept the original posters dont respond.

Here are the errors / warnings again any insight would be GREAT at this point im just getting frustrated so not going to figure out anything for a while lol-


Warning 1 warning LNK4221: no public symbols found; archive member will be inaccessible OPC_Picking.obj
Warning 2 warning LNK4221: no public symbols found; archive member will be inaccessible OPC_Common.obj
Error 3 error C2065: 'PM_QS_POSTMESSAGE' : undeclared identifier c:\Torque\TGEA_1_7_0\engine\source\windowManager\win32\winDispatch.cpp 436
Error 4 error C2065: 'MENUINFO' : undeclared identifier c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 113
Error 5 error C2146: syntax error : missing ';' before identifier 'mi' c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 113
Error 6 error C2065: 'mi' : undeclared identifier c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 113
Error 7 error C2228: left of '.cbSize' must have class/struct/union c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 114
Error 8 error C2070: ''unknown-type'': illegal sizeof operand c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 114
Error 9 error C2228: left of '.fMask' must have class/struct/union c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 115
Error 10 error C2065: 'MIM_MENUDATA' : undeclared identifier c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 115
Error 11 error C2228: left of '.dwMenuData' must have class/struct/union c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 116
Error 12 error C3861: 'SetMenuInfo': identifier not found c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 117
Error 13 error C2065: 'MIIM_STRING' : undeclared identifier c:\Torque\TGEA_1_7_0\engine\source\platformWin32\menus\popupMenuWin32.cpp 364
Error 14 error C3861: 'EnumDisplayDevices': identifier not found c:\Torque\TGEA_1_7_0\engine\source\platformWin32\cardProfile.cpp 19
Error 15 fatal error C1903: unable to recover from previous error(s); stopping compilation c:\Torque\TGEA_1_7_0\engine\source\platformWin32\cardProfile.cpp 19
Warning 16 warning C4505: 'yyunput' : unreferenced local function has been removed CMDscan.cpp
Warning 17 warning C4005: 'alloca' : macro redefinition cmdgram.y
Warning 18 warning C4701: potentially uninitialized local variable 'yyval' used c:\torque\tgea_1_7_0\gameexamples\forgedemo\buildfiles\visualstudio 2005\projects\bison.simple
Error 19 error BK1506 : cannot open file '..\link\vc2k5.release.win32\forgedemo\cardProfile.sbr': No such file or directory BSCMAKE



It saved a build log so if that will help I can send it to anyone that may be able to help.
#7
05/02/2008 (9:11 pm)
Mind you that is after clean installs of the following

Windows SDK
Grpahics Driver
DirectX
TGEA
#8
05/02/2008 (10:55 pm)
Ok now im super confused. Here was my fix.....

Uninstall TGEA for the second time. Reinstall it open up vs2005 standard add the dx includes(I forgot to include the windows sdk) clicked build and bam complied just fine

========== Build: 9 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Not sure why it worked without having to include the windows sdk but it did guessing that may have been the root of this evil this whole time.

So if your like me and cannot figure out what your doing wrong simply try not adding the include directory for "Windows SDKs"
#9
05/05/2008 (6:41 am)
You do not need the Windows SDK for Visual Studio Standard and up, it's already there as part of that install. You only need to download that separately for the Express version.
#10
05/05/2008 (6:45 am)
That would be the issue then :)

Everything is working good now.
Thank you for your help