I'm getting the following error:

error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?`

Which of course is a fair error, and I've dealt with it before. However, what's the stand procedure for dealing with source files from a 3rd party? Should I go through every single cpp of 3rd party code and plop it in?

The other alternative is to stick in its own project and handle linking properly. I'd especially love to not do this.

有帮助吗?

解决方案

You can disable precompiled headers just for the relevant files - those settings are configurable per-file within the same project.

Use Ctrl+click to select the relevant files in Solution Explorer, then right-click, Properties, C/C++, Precompiled Headers, Precompiled Header: Not Using Precompiled Headers.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top