How to fix an unrecognized #pragma error ?
Anonymous
Asked: July 30, 20222022-07-30T15:34:36+05:30 2022-07-30T15:34:36+05:30In: Microcontroller
Unrecognized #pragma directive
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.
Volt.Tech
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
While trying to write portable code I would surround the pragma with a conditional compiler directive, e.g.: #if defined(COMPILER_1) #pragma … #endif
While trying to write portable code I would surround the pragma with a conditional compiler directive, e.g.:
#if defined(COMPILER_1)
#pragma …
#endif
See less