saarchinese 发表于 2006-6-22 11:45

高手请指教: windows mobile 5.0 上使用 boost/regex

请问哪位高手知道,boost/regex是否能在windows mobile 5.0 pocket PC SDK (VC8.0)上编译? 因为我得到了下面的错误提示: fatal error C1189: #error : unknown CE compiler.

是否我安装的boost哪里不妥,还是客观上根本不能在windows mobile 5.0 pocket PC 上跑boost程序?

如果可以, 这个错误可能解决的方法是什么呢?

#include <boost/regex.hpp>
using namespace boost;

#include <iostream>
using namespace std;
#include <string>

int main()
{
string rex = "(ABC)(.*)";
string str = "ABC123ABC567";

regex expression(rex);
cmatch what;
if ( regex_match(str, what, expression) )
{
cout << what
<< endl
<< what
<< endl;
}

return 0;
}


这个测试程序也是从网上copy下来的, 就是运行这个测试程序时候出的错. 一开始是找不到boost/regex.hpp, 后来我把路径名加入VS2005环境后, 就出现我说的那个报错了.

今天新安装的boost, 我觉得应该是和boost有关的错误. 所以怀疑boost是不能运行在 windows mobile 5.0 SDK 环境下的.

请不吝赐教.
页: [1]
查看完整版本: 高手请指教: windows mobile 5.0 上使用 boost/regex