The part of my code as :
#if (OS_HOST == OS_TRUE)
#define INCLUDE_OS_TASK_POOLING OS_TRUE /* set to OS_TRUE to enable the task pooling in Host. */
#else /* In case if user is working on target then user needs */
#define INCLUDE_OS_TASK_POOLING OS_FALSE/* to manually set task pooling feature on*/
#endif
All the #if statements throws compilation error on Visual Studio 2022. The error as :
fatal error C1012: unmatched parenthesis: missing ‘)’
In all my source , I have #if statements. I don’t want to change the code. If I write #if(defined()) then it works . It won’t be possible to change the code in everywhere.Please suggest the best solution for compilation.
How to remove this compilation error ?
fatal error C1012: unmatched parenthesis: missing ‘)’
Soumya Samal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.