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

2.解压htmlcxx

3.打开htmlcxx.vcproj,htmlcxxapp.vcproj

#Windows库编译# Htmlcxx

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

#Windows库编译# Htmlcxx

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

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

#Windows库编译# Htmlcxx

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

 

相关文章:

  • 2021-07-15
  • 2022-01-20
  • 2021-10-08
  • 2021-04-02
  • 2022-01-08
  • 2022-03-10
  • 2021-12-12
猜你喜欢
  • 2021-07-21
  • 2021-10-29
  • 2021-05-29
  • 2021-11-25
  • 2021-05-25
  • 2021-04-19
相关资源
相似解决方案