Browsed by
Month: February 2015

C2143 in cstdio

C2143 in cstdio

It is rather interesting when the standard library returns compile errors: This C2143 error is caused by the inclusion of C++ code within a .c file. Renaming the file from *.c to *.cpp will solve the compile error. However, in some circumstances it is not ideal to rename the file. Then the error can be solved by instructing Visual Studio to compile the project as C++ with the /TP option. When we look at the project’s properties, we can see…

Read More Read More