求教babysloth,cber等朋友几个问题
1.Boost中的jam编译出来的lib和用make编译出来的lib为什么不同??三个需要编译的库
python,regex,thread,好像1.28版本只有thread没有mak文件,不知道用jam做出的thread lib能不能用.因为我用jam做的regex lib 是不能调用的.
2.Boost中采用make 编译 regex vc6.mak 编译出如下的几个lib
boost_regex_vc6_sss.lib boost_regex_vc6_mss.lib boost_regex_vc6_sssd.lib
boost_regex_vc6_mssd.lib boost_regex_vc6_mdid.lib boost_regex_vc6_mdi.lib
boost_regex_vc6_mds.lib boost_regex_vc6_mdsd.lib
然而我用vc的stl+boost\regex编译出现link错
test.obj : error LNK2001: unresolved external symbol "public: static void __cdecl boost::w32_regex_traits<char>::transform_primary(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char
,struct std::char_traits<char>,class std::allocator<char> > const &)" (?transform_primary@?$w32_regex_traits@D@boost@@SAXAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z)
Debug/test.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
无论那个lib都有这个问题.
但是同样的代码用stl_port和regex对应的vc_stlport的lib库就能正常工作.
这是为什么?另外在vc6.mak中的几个lib boost_regex_vc6_mdid.lib boost_regex_vc6_mssd.lib 都需要stl-port库,请问这两个库和用vc6-stlport库编译出来的有什么区别
3.一个regex的小问题,我昨天在用regex的时候突然想起来一个小问题,能否用regex做出
一个最初级的xml Sax解析器.(不要求区分标记的大小写).如果能这个regex应该怎么写呢?