|
From: Bastiaan B. <Bas...@li...> - 2002-10-25 15:33:48
|
On Fri, 2002-10-25 at 16:10, Daniar, Mohamad wrote: > Yes, > I got the same problem, > I have to remove std:: namespace from all of those function, > it fixed the error. Well, it doesn't fix the error, it works around it: the C++ standard requires <cstdlib> to provide std::getenv() for example. Removing the 'std::' namespace would break builds with compliant compilers. I'll add workarounds in Portability.hh. Cheers, Bastiaan > > thanks, > > Mohamad > > ----- Original Message ----- > From: "Bastiaan Bakker" <Bas...@li...> > To: <log...@li...> > Sent: Friday, October 25, 2002 4:44 AM > Subject: [Log4cpp-devel] 0.3.2 msvc6 compile error (bug #628211) > > > Hi, > > Someone reported the compilation problems included below. The missing > '#include <string>' in MSThreads.hh already has been reported and fixed. > The others haven't been reported yet. Does anyone else have these > compilation problems on MSVC 6.0? Are they caused by a broken compiler > environment of the reporter or bugs in MSVC itself or a result of the > missing #include? (The mention functions *are* a member of the std > namespace). > > Thanks, > > Bastiaan > > > Build fails on MSVC 6.0 for v 0.3.2 > Building the static (log4cpp) project under MSVC 6.0 > gives the following errors: > > d:\projects\3rdparty\aa\log4cpp-0.3.2\include\log4cpp\threading\msthreads.hh > (46) > : error C2653: 'std' : is not a class or namespace name > > > d:\projects\3rdparty\aa\log4cpp-0.3.2\src\remotesyslogappender.cpp(148) > : error C2039: 'memmove' : is not a member of 'std' > > d:\projects\3rdparty\aa\log4cpp-0.3.2\src\priority.cpp(46) > : error C2039: 'strtoul' : is not a member of 'std' > > > d:\projects\3rdparty\aa\log4cpp-0.3.2\src\properties.cpp(83) > : error C2039: 'atoi' : is not a member of 'std' > d:\projects\3rdparty\aa\log4cpp-0.3.2\src\properties.cpp(124) > : error C2039: 'getenv' : is not a member of 'std' > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en > _______________________________________________ > Log4cpp-devel mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/log4cpp-devel > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en > _______________________________________________ > Log4cpp-devel mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/log4cpp-devel |