Thread: [Plib-users] compiling plib with MSVC++ 2005
Brought to you by:
sjbaker
From: <moo...@gm...> - 2010-04-29 13:26:58
|
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 ******************************************************************** 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. Thanks a lot and best regards, Laura -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 |
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 |
From: Laura S. <moo...@gm...> - 2010-04-30 08:18:45
|
Hey Paolo, thank you very much. You're totally right. I forgot to link to the winmm.lib. I'm sorry for this question. Thank you and best regards, Laura -------- Original-Nachricht -------- > Datum: Thu, 29 Apr 2010 16:57:06 +0200 > Von: "Paolo Leoncini" <p.l...@ci...> > An: "\'PLIB Users\'" <pli...@li...> > Betreff: [Plib-users] R: compiling plib with MSVC++ 2005 > 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 > > > ------------------------------------------------------------------------------ > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 |