From: Vadim Zeitlin on
On Fri, 12 Jan 2007 13:44:16 +0100 Caligola900 <caligola900(a)yahoo.com> wrote:

C> TextCtrl. The only (the last one before a successful build? :-) ) error
C> I get is this (as already posted before by someone else):
C>
C> dummy.obj : error LNK2019: unresolved external symbol localtime
C> referenced in function "public: static struct tm * __cdecl
C> wxDateTime::GetTmNow(void)" (?GetTmNow(a)wxDateTime@@SAPAUtm@@XZ)
C>
C> Any suggestions?

As I wrote previously, I don't understand why my VC8 installation has
localtime() and yours doesn't. I suspect there might be something missing
on your end. But I don't have time to look at it now so in the meanwhile I
can only suggest that you hack include/wx/msw/wince/time.h and
src/msw/wince/time.cpp and remove the tests for VC8 (__VISUALC__ < 1400).

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: meirkr on
Hi.
removing the test of VC8 makes many other problems.

so,
I just disabled some lines in include\wx\datetime.h file:
/*
// another one to get the current time broken down
static struct tm *GetTmNow()
{
time_t t = GetTimeNow();
return localtime(&t);
}
*/

and there are no "locatltime" link errors anymore !!!

I think we don't even need those lines, because there is other similar
function defined:
static struct tm *GetTmNow(struct tm *tmstruct);
This function seems to be the same. It uses wxLocaltime_r() function
which uses _localtime64_s which is implemented in the crt dll.

So, tell me please if you find this solution helpful, and VADIM - tell
me please if it really ok to delete those lines as a solution - Do I
miss something else???

Thanks,
Kriheli Meir,



Vadim Zeitlin wrote:
> On Fri, 12 Jan 2007 13:44:16 +0100 Caligola900 <caligola900(a)yahoo.com> wrote:
>
> C> TextCtrl. The only (the last one before a successful build? :-) ) error
> C> I get is this (as already posted before by someone else):
> C>
> C> dummy.obj : error LNK2019: unresolved external symbol localtime
> C> referenced in function "public: static struct tm * __cdecl
> C> wxDateTime::GetTmNow(void)" (?GetTmNow(a)wxDateTime@@SAPAUtm@@XZ)
> C>
> C> Any suggestions?
>
> As I wrote previously, I don't understand why my VC8 installation has
> localtime() and yours doesn't. I suspect there might be something missing
> on your end. But I don't have time to look at it now so in the meanwhile I
> can only suggest that you hack include/wx/msw/wince/time.h and
> src/msw/wince/time.cpp and remove the tests for VC8 (__VISUALC__ < 1400).
>
> Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
> http://www.tt-solutions.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: meirkr on
Hi.
removing the test of VC8 makes many other problems.

so,
I just disabled some lines in include\wx\datetime.h file:
/*
// another one to get the current time broken down
static struct tm *GetTmNow()
{
time_t t = GetTimeNow();
return localtime(&t);
}
*/

and there are no "locatltime" link errors anymore !!!

I think we don't even need those lines, because there is other similar
function defined:
static struct tm *GetTmNow(struct tm *tmstruct);
This function seems to be the same. It uses wxLocaltime_r() function
which uses _localtime64_s which is implemented in the crt dll.

So, tell me please if you find this solution helpful, and VADIM - tell
me please if it really ok to delete those lines as a solution - Do I
miss something else???

Thanks,
Kriheli Meir,



Vadim Zeitlin wrote:
> On Fri, 12 Jan 2007 13:44:16 +0100 Caligola900 <caligola900(a)yahoo.com> wrote:
>
> C> TextCtrl. The only (the last one before a successful build? :-) ) error
> C> I get is this (as already posted before by someone else):
> C>
> C> dummy.obj : error LNK2019: unresolved external symbol localtime
> C> referenced in function "public: static struct tm * __cdecl
> C> wxDateTime::GetTmNow(void)" (?GetTmNow(a)wxDateTime@@SAPAUtm@@XZ)
> C>
> C> Any suggestions?
>
> As I wrote previously, I don't understand why my VC8 installation has
> localtime() and yours doesn't. I suspect there might be something missing
> on your end. But I don't have time to look at it now so in the meanwhile I
> can only suggest that you hack include/wx/msw/wince/time.h and
> src/msw/wince/time.cpp and remove the tests for VC8 (__VISUALC__ < 1400).
>
> Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
> http://www.tt-solutions.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: meirkr on
Hi.
removing the test of VC8 makes many other problems.

so,
I just disabled some lines in include\wx\datetime.h file:
/*
// another one to get the current time broken down
static struct tm *GetTmNow()
{
time_t t = GetTimeNow();
return localtime(&t);
}
*/

and there are no "locatltime" link errors anymore !!!

I think we don't even need those lines, because there is other similar
function defined:
static struct tm *GetTmNow(struct tm *tmstruct);
This function seems to be the same. It uses wxLocaltime_r() function
which uses _localtime64_s which is implemented in the crt dll.

So, tell me please if you find this solution helpful, and VADIM - tell
me please if it really ok to delete those lines as a solution - Do I
miss something else???

Thanks,
Kriheli Meir,



Vadim Zeitlin wrote:
> On Fri, 12 Jan 2007 13:44:16 +0100 Caligola900 <caligola900(a)yahoo.com> wrote:
>
> C> TextCtrl. The only (the last one before a successful build? :-) ) error
> C> I get is this (as already posted before by someone else):
> C>
> C> dummy.obj : error LNK2019: unresolved external symbol localtime
> C> referenced in function "public: static struct tm * __cdecl
> C> wxDateTime::GetTmNow(void)" (?GetTmNow(a)wxDateTime@@SAPAUtm@@XZ)
> C>
> C> Any suggestions?
>
> As I wrote previously, I don't understand why my VC8 installation has
> localtime() and yours doesn't. I suspect there might be something missing
> on your end. But I don't have time to look at it now so in the meanwhile I
> can only suggest that you hack include/wx/msw/wince/time.h and
> src/msw/wince/time.cpp and remove the tests for VC8 (__VISUALC__ < 1400).
>
> Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
> http://www.tt-solutions.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org