Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 873 Bytes

command-line-error-d8045.md

File metadata and controls

17 lines (13 loc) · 873 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Command-Line Error D8045
Command-Line Error D8045
11/04/2016
D8045
D8045
01c8808c-bac1-4b4d-8a90-b595f95e9318

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.