[Plib-users] R: compiling plib with MSVC++ 2005
Brought to you by:
sjbaker
From: Paolo L. <p.l...@ci...> - 2010-04-29 14:57:21
|
Hi Laura, > -----Messaggio originale----- > Da: moo...@gm... [mailto:moo...@gm...] > Inviato: giovedì 29 aprile 2010 15.27 > A: pli...@li... > Oggetto: [Plib-users] compiling plib with MSVC++ 2005 > > Hey Guys, > > last time I posted a message to this list I asked about Qt. > Now I changed my programming environment to Microsoft Visual > Studio 2005. > > I compiled the plib with it and it works fine. But when I > like to compile a project with js.h included and with the > library path included I get some linker errors. > > ******************************************************************* > js_d.lib(jsWindows.obj) : error LNK2019: unresolved external > symbol "__imp__joyGetDevCapsA@12" in Funktion ""protected: > void __thiscall jsJoystick::open(void)" (?open@jsJoystick@@IAEXXZ)". > > js_d.lib(jsWindows.obj) : error LNK2019: unresolved external > symbol "__imp__joyGetNumDevs@0" in Funktion ""public: > __thiscall jsJoystick::jsJoystick(int)" (??0jsJoystick@@QAE@H@Z)". > > js_d.lib(jsWindows.obj) : error LNK2019: unresolved external > symbol "__imp__joyGetPosEx@8" in Funktion ""public: void > __thiscall jsJoystick::rawRead(int *,float *)" > (?rawRead@jsJoystick@@QAEXPAHPAM@Z)". > > C:\userdata\VC2005_Projects\Test\Debug\Test.exe : fatal error > LNK1120: number unresolved externals 3 > ******************************************************************** These functions are in the Windows winmm lib/dll. So just include winmm.lib in VC++ among the libraries to link against. > Is there a version of plib which is compatible with VC++ > 2005? Or can anyone help me solving this probs? I'm not a > really good programmer, but with MSVC 6.0 I used plib as well > and it was easy to handle. But now I don't know what to do. Don't really know. But if it is the only problem you are very close to do one. > Thanks a lot and best regards, > Laura Greetings, Paolo Leoncini |