2

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)?

2
  • 1
    Since the answer is yes (see below), I would recommend not to follow the recommendation, but to fix the error you see when not using /TP. Commented Oct 8, 2012 at 16:50
  • Also see /Tc, /Tp, /TC, /TP (Specify Source File Type) on MSDN. Commented Sep 21, 2018 at 1:27

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.