wxctb linker error Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
mael15
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 542
Joined: Fri May 22, 2009 8:52 am
Location: Bremen, Germany

wxctb linker error

Post by mael15 »

hi,

i use wxWidgets 2.9.1 und am trying to use wxCTB 0.9. i get these "unresolved external symbol" errors:
1>wxctbd-0.9.lib(wxctb_lib_timer.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeKillEvent@4" in Funktion ""public: int __thiscall timer::stop(void)" (?stop@timer@@QAEHXZ)".
1>wxctbd-0.9.lib(wxctb_lib_timer.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeEndPeriod@4" in Funktion ""void __cdecl sleepms(unsigned int)" (?sleepms@@YAXI@Z)".
1>wxctbd-0.9.lib(wxctb_lib_timer.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeBeginPeriod@4" in Funktion ""void __cdecl sleepms(unsigned int)" (?sleepms@@YAXI@Z)".
1>wxctbd-0.9.lib(wxctb_lib_timer.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeSetEvent@20" in Funktion ""public: int __thiscall timer::start(void)" (?start@timer@@QAEHXZ)".
i noticed that on http://wxcode.sourceforge.net/showcomp.php?name=wxCtb it sais "wxWidgets supported versions: 2.4, 2.6". is my error related to my wxWidgets version, or was anyone able to work wir wxCTB under wxWidgets higher than 2.6?
User avatar
doublemax
Moderator
Moderator
Posts: 19163
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxctb linker error

Post by doublemax »

This missing functions are part of a Microsoft library, add "winmm.lib" to your linker input files.
Use the source, Luke!
mael15
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 542
Joined: Fri May 22, 2009 8:52 am
Location: Bremen, Germany

Re: wxctb linker error

Post by mael15 »

perfect, thanx!
Mofi
In need of some credit
In need of some credit
Posts: 1
Joined: Wed Jan 16, 2013 6:47 pm

Re: wxctb linker error

Post by Mofi »

mael15 wrote:hi,

i use wxWidgets 2.9.1 und am trying to use wxCTB 0.9. i get these "unresolved external symbol" errors:
1>wxctbd-0.9.lib(wxctb_lib_timer.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeKillEvent@4" in Funktion ""public: int __thiscall timer::stop(void)" (?stop@timer@@QAEHXZ)".
1>wxctbd-0.9.lib(wxctb_lib_timer.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeEndPeriod@4" in Funktion ""void __cdecl sleepms(unsigned int)" (?sleepms@@YAXI@Z)".
1>wxctbd-0.9.lib(wxctb_lib_timer.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeBeginPeriod@4" in Funktion ""void __cdecl sleepms(unsigned int)" (?sleepms@@YAXI@Z)".
1>wxctbd-0.9.lib(wxctb_lib_timer.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeSetEvent@20" in Funktion ""public: int __thiscall timer::start(void)" (?start@timer@@QAEHXZ)".
i noticed that on http://wxcode.sourceforge.net/showcomp.php?name=wxCtb it sais "wxWidgets supported versions: 2.4, 2.6". is my error related to my wxWidgets version, or was anyone able to work wir wxCTB under wxWidgets higher than 2.6?
Ive added winmm.lib but it is still not working as I expected.
User avatar
doublemax
Moderator
Moderator
Posts: 19163
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxctb linker error

Post by doublemax »

Ive added winmm.lib but it is still not working as I expected.
We need a little bit more information than this.

Which wxWIdgets version and compiler are you using and what's the exact error message you're getting?
Use the source, Luke!