#Windows库编译# Htmlcxx

1.下载Htmlcxx,官方网址:http://sourceforge.net/projects/htmlcxx

2.解压htmlcxx

3.打开htmlcxx.vcproj,htmlcxxapp.vcproj

4.设定依赖关系。使用VS打开htmlcxx.vcproj,可能需要对项目进行转换

5.选择编译模式:Debug或Release模式,具体由需要使用到Htmlcxx库文件的项目的编译模式决定。

6.右击htmlcxx,选择属性,可以看到运行库默认的是”多线程调试/MTD“:

7.部分编译器可能会报错:

bool detect_utf8(const char *begin, int size)
		{
			const char *ptr;
			const char *end = begin+size;
			const char *signature = "";
			char previous_byte = 0;
			unsigned count_bad_utf = 0;
			unsigned count_good_utf = 0;

 

改成

 

		bool detect_utf8(const char *begin, int size)
		{
			const char *ptr;
			const char *end = begin+size;
			const char *signature = NULL;
			char previous_byte = 0;
			unsigned count_bad_utf = 0;
			unsigned count_good_utf = 0;

具体选择运行库时,需要使用到Htmlcxx库文件的项目的运行库决定。详细可参考

#visual studio# 运行库MT、MTd、MD、MDd

https://blog.csdn.net/xiaoting451292510/article/details/89385839

 

Windows库编译下载地址:https://gitee.com/arvinxt/window-library

 附上htmlcxx学习资料:http://blog.csdn.net/youfangyuan/article/details/7816518

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值