Using the __FUNCTION__ Macro in LabWindows/CVI 8.5 Primary Software: LabWindows/CVI Development Systems>>Full Development SystemPrimary Software Version: 8.5 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I just installed LabWindows/CVI 8.5 and tried to compile one of our projects that uses the __FUNCTION__ macro. However, the compiler throws an error when I attempt to use that macro. This macro worked in LabWindows/CVI 8.1.1. How do I use the __FUNCTION__ macro in LabWindows/CVI 8.5?Solution: The __FUNCTION__ macro is part of the C99 standard and not part of the ANSI C 89 standard which is what LabWindows/CVI is currently based on. What happened in LabWindows/CVI 8.5 was that a handful of the features that comprise the C99 standard were added. Because code that uses C99 features might not be compatible with other C compilers, in order to use any of the C99-specific features of LabWindows/CVI 8.5, you will have to add a new pragma to your code:
Since So in order to continue using Note LabWindows/CVI 8.5 is still not C99-compatible.
Report Date: 11/26/2007 Last Updated: 11/26/2007 Document ID: 4FPAOI6S |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
