json编译错误及解决: /usr/include/wchar.h:75:43: error: missing binary operator before token "("
2017-09-14 21:26
1016 查看
最近编译代码, 引入json库, 结果编译的时候, 莫名其妙出现: /usr/include/wchar.h:75:43: error: missing binary operator before token "(" ,接着就是一大堆错误, 我是这么解决的:
1. 改#include "json.h"为 #include "json/json.h"
2. 改makefile的 /xxxx/xxxx/xxxx/comm/json为/xxxx/xxxx/xxxx/comm/
问题解决。是什么原因呢? 来摘录下一个网友的回答:
1. 改#include "json.h"为 #include "json/json.h"
2. 改makefile的 /xxxx/xxxx/xxxx/comm/json为/xxxx/xxxx/xxxx/comm/
问题解决。是什么原因呢? 来摘录下一个网友的回答:
相关文章推荐
- linux下使用jsoncpp库出现“/usr/include/wchar.h:75:43: error: missing binary operator before token "("”
- 编译代码时出现/usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"错
- /usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"错误
- 关于“/usr/include/openssl/bn.h 288 error: parse error before "BN_ULONG"解决方法
- 关于Error 1 error C1189: #error : "include 'stdafx.h' before including this file这个错误的解决方法
- 一种编译错误的解决办法。/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
- Android编译"missing separator"错误的解决
- 【解决】")syntax error: invalid arithmetic operator (error token is "
- VC编译错误:uafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPA
- gcc 编译错误 error:expected class-name before ';' token
- (转+原)VC编译错误:uafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 已经在 LIBCMT.lib(new.obj) 中定义
- VC编译错误:uafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPA
- VC编译错误:uafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPA
- VC编译错误:uafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPA
- goto编译错误,error: expected ‘;’ before ‘:’ token
- 调试错误的解决:error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 已经在 LIBCMT.lib(ne
- VC编译错误:uafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 已经在 LIBCMT.lib(new.obj
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- 错误:error: expected class-name before '{' token解决方法
- 调试错误的解决:error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 已经在 LIBCMT.lib(ne