   Direct Input and Dev-C++
  Okay,Old question but have not been able to find an answer.Have d/loaded the directx 9.0b sdk from microsoft and then used reimp to convert the .lib to .a files in order to use mingw.As part of learning directx I am developing a class to handle direct input, though unfortunantly am to get past on error being generated by the linker.The error that I am talking about isundefined reference to ''c_dfDIKeyboard''Now I presume that this is apart of the dinput.lib file and have linked in libdinput.a (the converted version) though it doesn''t pick up the reference in the lib.Any help would be greate though please no ''try using msvc'' replies.Later,WebmasterMattDhttp://www.webmastermattd.net-----------------------------   Why doth thou try to criticise me?Doth thou not trust thine judgement?Thou will only find clarity through faith,of which faith is the extension of knowledge.For if thou only knew what I knew, thou would not have a single fear in the world. 
  It''s happened to me to, so, I said: "who the fu*k cares about Microsoft(©), if they dont support DirectInput on other compilers, so i will use Visual Studio (©) I downloaded from kazaa(©)".now, seriously, it''s happened to me to, and I didnt found an answer to this... so i did what i did. ;  dxguid.libI think that''s the name, or else it is something like that. That library must also be included...not sure why... ;  I think someone would appreciate it if your *.a files. I think there''s a site that accepts these things, but I''m not sure.   .lick;  Well... There was no reason to convert the libs yourself as there is a package you can download a working sdk through the updater that came with dev-cpp. However you will still have that problem so what you need to do is link both your(or dev''s) version of the library *and* the microsoft sdk''s. You dont need to do that with every .lib just the one that has the dinput stuff.Here is why (if you care). When you use reimp to convert the library the only thing that the converted library has is the exported functions that are in the dll''s (in this case most of them) however static objects (like c_dfDIKeyboard) never get put in the .a but they are compatible with gcc so just link them. ;  Thanks for your replies people.I did as suggested and linked in dinput.lib and that got rid of the linker error.Later,WebmasterMattDhttp://www.webmastermattd.net-----------------------------   Why doth thou try to criticise me?Doth thou not trust thine judgement?Thou will only find clarity through faith,of which faith is the extension of knowledge.For if thou only knew what I knew, thou would not have a single fear in the world. 