Home > Back-end >  Vs2015 C use belt and macro hint user defined text operator was not found
Vs2015 C use belt and macro hint user defined text operator was not found

Time:09-15

 # define XXXXX (FMT,... ) hlog_format (HLOG_LEVEL_ERROR, "XXXXX", "& lt; % d> \ t<% s> , "FMT and __LINE__ __FUNCTION__, # # __VA_ARGS__) 

Although the compiler can but a pile of red wavy lines and see this very vexed who specify how to solve

CodePudding user response:

https://blog.csdn.net/qq_16755585/article/details/102544577

CodePudding user response:

reference 1st floor JevenZhu response:
https://blog.csdn.net/qq_16755585/article/details/102544577
you this take temporary solution not effect a permanent cure, one thousand is indeed a code I write wrong

CodePudding user response:

refer to the second floor weixin_36946549 response:
Quote: refer to 1st floor JevenZhu response:

https://blog.csdn.net/qq_16755585/article/details/102544577
you this take temporary solution not effect a permanent cure, one thousand is the code I write wrong?

This is false positives ah.. Write the wrong compilation naturally but you afraid what...

CodePudding user response:

reference JevenZhu reply: 3/f
Quote: refer to the second floor weixin_36946549 response:

Quote: refer to 1st floor JevenZhu response:

https://blog.csdn.net/qq_16755585/article/details/102544577
you this take temporary solution not effect a permanent cure, one thousand is the code I write wrong?

This is false positives ah.. Write the wrong compilation naturally but you afraid what -- --
ha ha ha

CodePudding user response:

Add a space before actual FMT

, "& lt; % d> \ t<% s> , " Spaces FMT,

 # define XXXXX (FMT,... ) hlog_format (HLOG_LEVEL_ERROR, "XXXXX", "& lt; % d> \ t<% s> , "FMT and __LINE__ __FUNCTION__, # # __VA_ARGS__) 


The original poster is hai kang?

CodePudding user response:

I also just discovered this error from hlog library, solved the ~ ~

CodePudding user response:

reference 5 floor _mervyn reply:
add a space before the FMT can

, "& lt; % d> \ t<% s> , " Spaces FMT,

 # define XXXXX (FMT,... ) hlog_format (HLOG_LEVEL_ERROR, "XXXXX", "& lt; % d> \ t<% s> , "FMT and __LINE__ __FUNCTION__, # # __VA_ARGS__) 


The original poster is hai kang?


reference 5 floor _mervyn reply:
add a space before the FMT can

, "& lt; % d> \ t<% s> , " Spaces FMT,

 # define XXXXX (FMT,... ) hlog_format (HLOG_LEVEL_ERROR, "XXXXX", "& lt; % d> \ t<% s> , "FMT and __LINE__ __FUNCTION__, # # __VA_ARGS__) 


The original poster is hai kang?
thank you very much ha ha ha ha

CodePudding user response:

Change the "FMT" to # FMT can
Refer to the macro definition # and # # usage, close to measure effective
https://blog.csdn.net/haiross/article/details/46472475

CodePudding user response:

If you have "" FMT" \ n "format, into a FMT" \ n"
  • Related