Wind is Wild

日常体会,以及笔记

 

2020年12月4日

linux C++中宏定义的问题:error: unable to find string literal operator ‘operator""fmt’ with ‘const char [4]’, ‘long unsigned int’ arguments

摘要: 测试项目的代码里有这样的宏定义 #define SCRPRINT(fmt,...) fprintf(stderr, "[%s]-> "fmt"\n", __FUNCTION__, ##__VA_ARGS__) 在linux的c或者windows下的c/c++都没问题,在linux的cpp中编译无法通 阅读全文

posted @ 2020-12-04 10:57 ifdef 阅读(2504) 评论(0) 推荐(1) 编辑

导航