[share]how to build WxWidgets on VC6
Posted: Thu Jul 05, 2012 2:37 am
when build Wxwidgets on VC6 ,you will receive some error linke "fatal error C1001: INTERNAL COMPILER ERROR" ,and double click this error ,VC6 will open the wx/datetime.h .
and location in the follow code
now you need to modify it to the follow
have fun!
and location in the follow code
Code: Select all
inline bool operator<(const wxTimeSpan &ts) const
{
return GetValue() < ts.GetValue();
}
inline bool operator<=(const wxTimeSpan &ts) const
{
return GetValue() <= ts.GetValue();
}
inline bool operator>(const wxTimeSpan &ts) const
{
return GetValue() > ts.GetValue();
}
inline bool operator>=(const wxTimeSpan &ts) const
{
return GetValue() >= ts.GetValue();
}
Code: Select all
inline bool operator<(const wxTimeSpan &ts) const
{
return GetValue().ToLong() < ts.GetValue().ToLong();
}
inline bool operator<=(const wxTimeSpan &ts) const
{
return GetValue().ToLong() <= ts.GetValue().ToLong();
}
inline bool operator>(const wxTimeSpan &ts) const
{
return GetValue().ToLong() > ts.GetValue().ToLong();
}
inline bool operator>=(const wxTimeSpan &ts) const
{
return GetValue().ToLong() >= ts.GetValue().ToLong();
}