当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: boost库安装比较麻烦,需要自己编译源文件,我整理了一下,如果仅仅需要做正则表达式,按下面的代码敲就行了: cmdvcvars32.batcd D:\boost_1_32_0\libs\regex\buildd:nmake -fvc6.maknmake -fvc6.mak install ...
 

 

    摘要:window.location.href=http://www.ibm.com/developerworks/cn/web/wa-javascript.html?s_tact=105agx52&s_cmp=08-w-cto;......
 ·aop@works知识专栏介绍    »显示摘要«
    摘要:window.location.href=http://www-128.ibm.com/developerworks/cn/views/java/articles.jsp?view_by=search&search_by=aop%40work&s_tact=105agx52&s_cmp=08-w-cto; ......


VC利用boost库解析正则表达式

boost库安装比较麻烦,需要自己编译源文件,我整理了一下,如果仅仅需要做正则表达式,按下面的代码敲就行了:

vcvars32.bat 【程序编程相关:Linux 下 C 语言编程(1)

cmd 【推荐阅读:GCC安装手册(1)

d: 【扩展信息:C++代码优化方法总结(1)

cd d:\boost_1_32_0\libs\regex\build

nmake -fvc6.mak

nmake -fvc6.mak install

注意,别看下载下来的数据包没有多大,解压缩之后达到了100多m,编译完之后为109m,占用131m,所以安装时一定注意空出足够的空间,敲入nmake -fvc6.mak后等待的时间比较长,屏幕上还会出现一大堆英语,可以不做考虑.按照步骤往下敲就行了.压缩包内文档很详细,参照文档继续就可以了.

在vc6中集成:tools->options->directories->include files

加入:d:\boost_1_32_0

编写一个源程序测试一下:

#include "stdafx.h"

#include <cstdlib>

#include <stdlib.h>

#include <boost/regex.hpp>

#include <string>

#include <iostream>

using namespace std;

using namespace boost;


...   下一页
 ·使用微格式分离web数据与格式    »显示摘要«
    摘要:window.location.href=http://www.ibm.com/developerworks/cn/xml/x-microformats/index.html?s_tact=105agx52&s_cmp=08-w-cto;......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE