解决unable to find string literal operator 'operator""fmt' with 'const char [15]', 编译问题
2017-03-16 14:59
1891 查看
#define show_log(tag, fmt, arg...) printf("[%s][%s:%d]: "fmt"\n", tag, __func__, __LINE__, ##arg)
C可以编译通过,而C++编译出标题错误。
说是C++11要求,当字符串跟变量连接的时候,必须fmt前后增加一个空格才行。
#define show_log(tag, fmt, arg...) printf("[%s][%s:%d]: " fmt "\n", tag, __func__, __LINE__, ##arg)
C可以编译通过,而C++编译出标题错误。
说是C++11要求,当字符串跟变量连接的时候,必须fmt前后增加一个空格才行。
#define show_log(tag, fmt, arg...) printf("[%s][%s:%d]: " fmt "\n", tag, __func__, __LINE__, ##arg)
相关文章推荐
- C++11 error: unable to find string literal operator 'operator"
- Unable to find a team with the given Team ID或者Failed to code sign的问题解决
- Unable to find a value for "字段名" in object of class java.lang.String using operator "."
- Error:Failed to find target with hash string 'android-15' 解决办法
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- 问题解决:javax.servlet.jsp.el.ELException: The "." operator was supplied with an index value of type "java.lang.String" to be applie
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- 编译内核,make menuconfig 出现以下问题Unable to find the ncurses libraries or the及解决
- Unable to find a team with the given Team ID 问题解决方法
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- Unable to find a value for "dwmc" in object of class "java.lang.String" using operator "." (null
- Win7 64位编译Python扩展解决”error: Unable to find vcvarsall.bat”问题
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 安装Fedora时遇到unable to find any devices of the type needed for this installation type问题的解决
- The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List
- 解决PKIX问题:unable to find valid certification path to requested target
- 在Linux上安装netcdf4 ,解决"Can't find or link to the hdf5 library"的问题
- token 6.x-1.17 "preg_match_all() expects parameter 2 to be string, array given in token_scan()" 问题解决
- [Android] "Failed to find Java version for 'C:\Windows\system32\java.exe"问题的解决方法
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决