Compiler Error C2773

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2773.

import and #using available only in C++ compiler

The C compiler does not recognize the #import preprocessor directive. Compile the source as C++. Use /TP if necessary.

Show: