archer-byte

Results 6 comments of archer-byte

回复楼上:为了在项目里面引入cppjieba,我把cppjieba/include/*.hpp组织在一个文件夹中整合到项目中,但是DictTrie.hpp头文件包含了另外两个头文件"limonp/StringUtil.hpp"和"limonp/Logging.hpp",于是我便在包含了cppjieba/include/*.hpp这些头文件的目录中建立了一个名为limonp的子目录,并且将源码limonp/*.hpp中这些头文件全部拷贝进去,在Ubuntu 16.04 x64下codeblocks中编译,但报错,报错信息为: cppjieba/limonp/StdExtension.hpp:19:17: error: ‘unordered_map’ is already declared in this scope using std::tr1::unordered_map; ^~~~~~~~~~~~~

编译器g++ 7.1,c++17

非常感谢楼上的回复,问题已经查明,是C++标准版本的问题,使用C++14没有问题,C++17则报错,看了一下主要问题出现在“using std::tr1::unordered_map;using std::tr1::unordered_set;”这里,推测与标准库版本tr1有关。

是注册一次,有且只有GET/POST方法。不是分开注册。

我已经fork了一份并对其做了个人修改,已经脱离了,所以可能不能再做pull request了。

thanks for your reminding, let me have a try : )