Comments (6)
Please send a diff or elaborate as to what you think should change and why.
from log4cplus.
1>------ 已启动全部重新生成: 项目: log4cplus, 配置: Debug_Unicode Win32 ------
1> appender.cxx
1> clogger.cxx
1> configurator.cxx
1> connectorthread.cxx
1> fileinfo.cxx
1> global-init.cxx
1> hierarchy.cxx
1> hierarchylocker.cxx
1> layout.cxx
1> lockfile.cxx
1> log4judpappender.cxx
1> logger.cxx
1> loggingevent.cxx
1> loggingmacros.cxx
1> mdc.cxx
1> ndc.cxx
1> patternlayout.cxx
1> version.cxx
1> asyncappender.cxx
1> consoleappender.cxx
1> fileappender.cxx
1> nteventlogappender.cxx
1>E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(195): warning C4275: 非 dll 接口 class“log4cplus::FileAppenderBase”用作 dll 接口 class“log4cplus::FileAppender”的基 (..\src\fileappender.cxx)
1> E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(111) : 参见“log4cplus::FileAppenderBase”的声明
1> E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(195) : 参见“log4cplus::FileAppender”的声明
1>E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(353): warning C4275: 非 dll 接口 class“log4cplus::FileAppenderBase”用作 dll 接口 class“log4cplus::TimeBasedRollingFileAppender”的基 (..\src\fileappender.cxx)
1> E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(111) : 参见“log4cplus::FileAppenderBase”的声明
1> E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(353) : 参见“log4cplus::TimeBasedRollingFileAppender”的声明
1> nullappender.cxx
1> socketappender.cxx
1>..\src\fileappender.cxx(1142): error C2664: “std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>::basic_string(std::initializer_list<_Elem>,const std::allocator<wchar_t> &)”: 无法将参数 1 从“const char [7]”转换为“const std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>> &”
1> with
1> [
1> _Elem=wchar_t
1> ]
1> 原因如下: 无法从“const char [7]”转换为“const std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>”
1> 无构造函数可以接受源类型,或构造函数重载决策不明确
1>..\src\fileappender.cxx(1279): warning C4244: “初始化”: 从“time_t”转换到“int”,可能丢失数据
1> syslogappender.cxx
1> win32consoleappender.cxx
1> win32debugappender.cxx
1> env.cxx
1> factory.cxx
1> filter.cxx
1> loggerimpl.cxx
1>E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(195): warning C4275: 非 dll 接口 class“log4cplus::FileAppenderBase”用作 dll 接口 class“log4cplus::FileAppender”的基 (..\src\factory.cxx)
1> E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(111) : 参见“log4cplus::FileAppenderBase”的声明
1> E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(195) : 参见“log4cplus::FileAppender”的声明
1>E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(353): warning C4275: 非 dll 接口 class“log4cplus::FileAppenderBase”用作 dll 接口 class“log4cplus::TimeBasedRollingFileAppender”的基 (..\src\factory.cxx)
1> E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(111) : 参见“log4cplus::FileAppenderBase”的声明
1> E:\Projects\compile\log4cplus-1.2.x\include\log4cplus/fileappender.h(353) : 参见“log4cplus::TimeBasedRollingFileAppender”的声明
1> loglevel.cxx
1> objectregistry.cxx
1> rootlogger.cxx
1> syncprims.cxx
1> threads.cxx
1> tls.cxx
1> appenderattachableimpl.cxx
1> loglog.cxx
1> logloguser.cxx
1> pointer.cxx
1> property.cxx
1> queue.cxx
1> sleep.cxx
1> snprintf.cxx
1> socket-win32.cxx
1> socket.cxx
1> socketbuffer.cxx
1>..\src\socket-win32.cxx(219): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(2238) : 参见“gethostbyname”的声明
1>..\src\socket-win32.cxx(372): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(2238) : 参见“gethostbyname”的声明
1> stringhelper-clocale.cxx
1> stringhelper-cxxlocale.cxx
1> stringhelper-iconv.cxx
1> stringhelper.cxx
1> timehelper.cxx
========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========
Build Summary
-------------
00:29.453 - Failed - Debug_Unicode Win32 - log4cplus.vcxproj
Total build time: 00:29.453
========== Rebuild All: 0 succeeded or up-to-date, 1 failed, 20 skipped, Completed at 11/4/2014 10:47:55 PM ==========
from log4cplus.
Sorry but I do not speak Chinese. The above does not tell me anything.
from log4cplus.
#if defined (UNICODE)
typedef wchar_t tchar;
#else
typedef char tchar;
#endif
typedef std::basic_string<tchar> tstring;
tstring filenamePattern;
const char temp[7] = "%d.log";
filenamePattern(temp); // if UNICODE, temp should be wchar_t type
from log4cplus.
I see now, filenamePattern
initialization is missing the LOG4CPLUS_TEXT()
wrapper.
from log4cplus.
This should now be fixed by f6b0ce4 on 1.2.x branch.
from log4cplus.
Related Issues (20)
- ./configure fails using c++2a HOT 3
- How to configure PatternLayout to use __FUNCTION__ HOT 7
- A link error occurred while compiling the my program. HOT 4
- Question: Effect of LOG4CPLUS_REQUIRE_EXPLICIT_INITIALIZATION on Windows? HOT 5
- Setting log level through env in log config file HOT 3
- Help needed: how to periodically flush logger with appender's immediateFlush set to false? HOT 2
- log file name not change after rollover TimeBasedRollingFileAppender HOT 3
- log's maxsize>200kb,but it dosen't work HOT 2
- Opentelemetry integration HOT 1
- What kind of compilation options can correctly generate a multi-threaded logging library HOT 5
- Win64 application crash on exit HOT 1
- Why mingw can't complie log4cplus-2.1.1? HOT 1
- Sending logs from log4cplus to log4j via TCP HOT 1
- Is it possible to build log4cplus for QNX aarch64le? HOT 3
- Save all configuration in a file HOT 2
- Question: Which latest version of Log4cplus I should use on RedHat 7.9 with DevToolset11-toolchain ( GCC 11.2 ) compiler HOT 7
- Does not work when maxBackupIndex is set to 0 HOT 1
- Include Headers Possibly Causing Build Error HOT 5
- how to set FD_CLOEXEC for log4cplus HOT 1
- Inconsistent Log File Permissions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from log4cplus.