no member named clock_t in the global namespace

今天在使用fmt第三方库的时候[https://github.com/fmtlib/fmt/issues/324](https://github.com/fmtlib/fmt/issues/324)  
遇到一个问题fmtlib no member named clock_t in the global namespace,原因I can't use fmtlib 3.0.0 because of including time.h problem. Local time.h masks system time.h file.
当我们遇到第三方库或者自己的头文件和系统的头文件名字一样时,我们可以不直接引用这个头文件(即不通过group的方式加入到工程中),而是放在一个目录下,通过fmt/time.h 这样的方式来使用,然后把头文件目录加入到搜索配置路径中

参考:  
[http://www.cnblogs.com/ZhYQ-Note/articles/6099394.html](http://www.cnblogs.com/ZhYQ-Note/articles/6099394.html)

 

posted on 2016-11-25 10:07  ZhYQ_note  阅读(810)  评论(0)    收藏  举报

导航