Skip to content

yanyiwu/cjieba

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

cjieba

Build Status Author Performance License

其实就是 CppJieba 的 C语言 api 接口, 独立出来作为一个仓库的原因是不想让 CppJieba 变太复杂和臃肿而已。

用法示例

make
./demo

编译相关

如果编译报关于 tr1/unordered_map 的错时, 解决方法是加上 -std=c++0x 或者 -std=c++11 选项即可,比如:

g++ -std=c++11 -DLOGGING_LEVEL=LL_WARNING -o c_api.o -c src/c_api.cpp

还有就是选项 -DLOGGING_LEVEL=LL_WARNING 的含义是日志级别设置为警告级别以上才打日志, 如果不设置该选项则会连 DEBUG 或者 INFO 级别的日志也打出来。

客服