If a particular header is already included in stdafx.h – do I need to (have to/should to) to explicitly include it in a .cpp file (which already includes the stdafx.h) ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When stdafx is created for you it is typically a precompiled header.
As a precomiled header it will be necessary to add it to any .cpp that is marked to use precompiled headers (normaly any cpp added to the project except for stdafx.cpp)
You don’t need to include headers already included in stdafx.h, including it again may cause extra effort for the compiler.