Command-Line Error D8045
cannot compile C file 'file' with the /clr option
Only C++ source code files can be passed to a compilation that uses /clr. Use /TP to compile a .c file as a .cpp file; see /Tc, /Tp, /TC, /TP (Specify Source File Type) for more information.
For more information, see /clr (Common Language Runtime Compilation).
D8045 can also occur if you compile an ATL application using Visual C++. See How to: Migrate to /clr for more information.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for