paragui-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-dev] problems in pglog.cpp


From: Andrew Ford
Subject: Re: [paragui-dev] problems in pglog.cpp
Date: Fri, 31 May 2002 07:42:53 -0700 (PDT)

I was running into similar problems in my own code. 
Visual C++ doesn't correctly add the c-library
functions to namespace std when you include, for
instance, ctime instead of time.h.  A possible
workaround is to do the following:

#ifdef _MSC_VER // we know it's vc now
namespace std {
#include <time.h>
#include <stdlib.h>
}
#else // A compiler that works correctly.
#include <ctime>
#include <cstdlib>
#endif

I've been doing some windows stuff lately and I'm
pretty disappointed with vc.

Andrew.

--- Lonnie Cumberland <address@hidden>
wrote:
> Hello All,
> 
> I have just gotten the paragui-1.0.2-rc2 release and
> have tried to compile it on my Windows 2000 VC++
> 6.0.
> 
> I ran into these problems so far:
> 
> pglog.cpp
>
d:\_ichl\paragui-1.0.2-rc2.tar\paragui-1.0.2\src\core\pglog.cpp(47)
> : error C2039: 'time_t' : is not a member of 'std'
>
d:\_ichl\paragui-1.0.2-rc2.tar\paragui-1.0.2\src\core\pglog.cpp(122)
> : error C2039: 'localtime' : is not a member of
> 'std'
>
d:\_ichl\paragui-1.0.2-rc2.tar\paragui-1.0.2\src\core\pglog.cpp(149)
> : error C2039: 'localtime' : is not a member of
> 'std'
>
d:\_ichl\paragui-1.0.2-rc2.tar\paragui-1.0.2\src\core\pglog.cpp(186)
> : error C2039: 'localtime' : is not a member of
> 'std'
> 
> Just thought that I would let the development list
> know.
> Lonnie
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]