Thread: [Plib-users] Compiling the UL
Brought to you by:
sjbaker
From: John R A. <jra...@at...> - 2002-12-05 15:36:04
|
Hey, new to this list so i don't know how much activity occurs. Hope there is somebody out there that can help me. Just got the PLIB today, compiled just the Utility Library because all I need (currently) is the platform independent ulClock class. Compiled the UL, produced two header files and the library in the root dir of the libraries folder (using .NET on Win32, btw). So then I include "ul.h" somewhere in my project and put a ulClock class in one of my own classes. Compiles fine, except for a linker error in the ulClock class. It can't seem to find an implementation of timeGetTime() (which is referenced in ulClock::getRawTime). This is strange because timeGetTime is defined in mmsystem.h Since I belive my system uses the performance timers, it's not a big deal because I can just comment that line out and return 0.0 (yeah, I know it's a hack, that's why I'm asking how to fix it). Since my system will use performance timers it will never get to my hack. Anybody have any ideas / suggestions / comments? Thanks for the library whoever wrote it, re-inventing the wheel is tiring. -crombie |
From: Sam S. <sa...@sp...> - 2002-12-05 15:49:06
|
You need to link against of the other Window's library. I can't remember which off the top of my head, but I thinks it's winmm.lib. Sam ----- Original Message ----- From: "John R Abercrombie" <jra...@at...> To: <pli...@li...> Sent: Thursday, December 05, 2002 3:35 PM Subject: [Plib-users] Compiling the UL > Hey, new to this list so i don't know how much activity occurs. Hope there > is somebody out there that can help me. > > Just got the PLIB today, compiled just the Utility Library because all I > need (currently) is the platform independent ulClock class. Compiled the > UL, produced two header files and the library in the root dir of the > libraries folder (using .NET on Win32, btw). > > So then I include "ul.h" somewhere in my project and put a ulClock class in > one of my own classes. Compiles fine, except for a linker error in the > ulClock class. It can't seem to find an implementation of timeGetTime() > (which is referenced in ulClock::getRawTime). > > This is strange because timeGetTime is defined in mmsystem.h > > Since I belive my system uses the performance timers, it's not a big deal > because I can just comment that line out and return 0.0 (yeah, I know it's a > hack, that's why I'm asking how to fix it). Since my system will use > performance timers it will never get to my hack. > > Anybody have any ideas / suggestions / comments? Thanks for the library > whoever wrote it, re-inventing the wheel is tiring. > > -crombie > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |
From: John R A. <jra...@at...> - 2002-12-05 16:12:14
|
Yep, that was it. Thanks. -crombie ----- Original Message ----- From: "Sam Stickland" <sa...@sp...> To: <pli...@li...> Sent: Thursday, December 05, 2002 10:49 AM Subject: Re: [Plib-users] Compiling the UL > You need to link against of the other Window's library. I can't remember > which off the top of my head, but I thinks it's winmm.lib. > > Sam > > ----- Original Message ----- > From: "John R Abercrombie" <jra...@at...> > To: <pli...@li...> > Sent: Thursday, December 05, 2002 3:35 PM > Subject: [Plib-users] Compiling the UL > > > > Hey, new to this list so i don't know how much activity occurs. Hope > there > > is somebody out there that can help me. > > > > Just got the PLIB today, compiled just the Utility Library because all I > > need (currently) is the platform independent ulClock class. Compiled the > > UL, produced two header files and the library in the root dir of the > > libraries folder (using .NET on Win32, btw). > > > > So then I include "ul.h" somewhere in my project and put a ulClock class > in > > one of my own classes. Compiles fine, except for a linker error in the > > ulClock class. It can't seem to find an implementation of timeGetTime() > > (which is referenced in ulClock::getRawTime). > > > > This is strange because timeGetTime is defined in mmsystem.h > > > > Since I belive my system uses the performance timers, it's not a big deal > > because I can just comment that line out and return 0.0 (yeah, I know it's > a > > hack, that's why I'm asking how to fix it). Since my system will use > > performance timers it will never get to my hack. > > > > Anybody have any ideas / suggestions / comments? Thanks for the library > > whoever wrote it, re-inventing the wheel is tiring. > > > > -crombie > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > plib-users mailing list > > pli...@li... > > https://lists.sourceforge.net/lists/listinfo/plib-users > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users |
From: Norman V. <nh...@ca...> - 2002-12-05 16:22:30
|
John R Abercrombie writes: > > Just got the PLIB today, compiled just the Utility Library because all I > need (currently) is the platform independent ulClock class. Compiled the > UL, produced two header files and the library in the root dir of the > libraries folder (using .NET on Win32, btw). > > So then I include "ul.h" somewhere in my project and put a ulClock class in > one of my own classes. Compiles fine, except for a linker error in the > ulClock class. It can't seem to find an implementation of timeGetTime() > (which is referenced in ulClock::getRawTime). you need to add Microsoft's winmm.lib to your linked libraries list Norman |