vs2008下编译log4cpp 1.1.1
来源:互联网 发布:windows防火墙开关 编辑:程序博客网 时间:2024/06/18 15:06
log4cpp 1.1.1从官网上下载 http://sourceforge.net/projects/log4cpp/
只在release模式下编译,如下:
1、选择log4cpp/msvc7/msvc7.sln,打开并转换
2、设置为release模式
3、log4cpp属性->Custom Build Step->General->Command Line。在CommandLine输入:
if not exist $(OutDir) md $(OutDir)
"mc.exe" -h $(OutDir) -r $(OutDir) $(SolutionDir)NTEventLogCategories.mc
"RC.exe" -r -fo $(OutDir)\$(InputName).res $(ProjectDir)\$(InputName).rc
"link.exe" /MACHINE:IX86 -dll -noentry -out:$(OutDir)\NTEventLogAppender.dll $(OutDir)\$(InputName).res
在Output Dependencies中输入:
$(OutDir)\NTEventLogAppender.dll
4、log4cpp属性->Linker->General->Output File: 将输出文件设置为"从父级或项目默认目录继承"
5、log4cpp属性->C/C++->General->Additional Include Directories 输入文本“../../include”
6、设置log4cppLIB的属性,步骤与内容与3一样,不赘述
7、在log4cppLIB添加localtime.cpp。该cpp在log4cpp/src中。
8、重新生成整个解决方案即可
顺便吐槽一下,作者分明可以在发布之时就把这些设置好了,为何不弄,害得我们还要再重新对其进行配置。
参考资料:http://blog.sina.com.cn/s/blog_66dd241c01016wbz.html
http://tianyou8.blog.hexun.com/48593156_d.html
http://blog.csdn.net/zengcccc/article/details/7221961
- vs2008下编译log4cpp 1.1.1
- vs2008 编译 log4cpp 报错解决方案
- log4cpp windows下运用(1)----log4cpp在windows下编译的修改
- linux下编译log4cpp-0.3.5rc3
- linux下编译log4cpp的方法
- Linux环境下Log4cpp-1.1.1 的下载、安装、配置
- C++BUILDER6下编译log4cpp-0.2.8手记
- VS2008下编译BOOST
- pwlib VS2008下编译
- VS2008下编译boost_1_47_0
- vs2008下编译boost_1_47_0
- VS2008下LibTorrent编译
- VS2008 下编译 live555
- VS2008下编译boost
- vs2008下 openssl 编译
- VS2008下,编译.asm
- log4cpp编译,Windows/Linux
- log4cpp 编译与使用
- c++中类的继承
- Mahout介绍
- Js参数值中含有单引号或双引号问题的解决方法
- jquery 商品图片放大效果
- openssl signature 1
- vs2008下编译log4cpp 1.1.1
- iOS:属性、修饰词(内存管理) 及其对应成员变量 、ARC
- VC6.0下设置Unicode编译环境
- HTML <em> 标签
- linux杂谈(十七):iscsi存储分离技术
- 虚拟地址和物理地址的概念
- JavaSE 套接字Socket编程
- iOS bit to nsdata
- [leetcode]Sort List