Compile as C source file as C++ using MSVC

时间秒杀一切 提交于 2019-12-12 04:36:34

问题


I'm working on C++ project. Because of some errors I got recommendation to set Properties > C/C++ > Advanced > Compile As and check Compile as C++ Code(/TP).

My project includes iniparser.c that has extension "C". What I want to know is whether my new settings (C++) can affect the compilation of my project, given that it contains a .c file (iniparser.c)?


回答1:


Your question seems to be a possible duplicate of this one:

What issues can I expect compiling C code with a C++ compiler?

Without knowing the details of your problem, there a number of issues that have to be considered when compiling C code with a C++ compiler. See this link for more details: http://david.tribble.com/text/cdiffs.htm



来源:https://stackoverflow.com/questions/12785346/compile-as-c-source-file-as-c-using-msvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!