Create Visual Studio 2013 Project in Pure C

What's the best way to do this? Templates seem to only allow for C ++ (which is mostly C compatible, but not the same.) What is the correct way to do this? (A particular #define or whatever.) Any help would be appreciated.

+3


source to share


1 answer


The solution is simple and simple

  • You create a new win32 console project

  • Delete default .cpp file

  • Add a new .c file as you wish

  • In properties under C / C ++ -> All Options find "Compile as" then select "Compile as C code"



two muppets

  1. Simple health check. This code does not work with C ++ because "new" is a reserved word for C ++.

    int new = 10;

+11


source







All Articles