Severity Code Description Project File Line Suppression State
Error C1010 unexpected end of file while looking for precompiled header. Did you forget to add '#include "PreCompiled.h"' to your source? Path C:\Users\Chris\GitHub\FreeCAD\src\Mod\Path\App\PathSegmentWalker.cpp 360
5>C:\Users\Chris\GitHub\FreeCAD\src\Mod\Path\App\PathSegmentWalker.cpp(360): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "PreCompiled.h"' to your source?
5>C:\Users\Chris\GitHub\FreeCAD\src\Mod\Path\App\PathSegmentWalker.cpp(360): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "PreCompiled.h"' to your source?
Thanks for the quick response.
Interestingly I do include the precompiled header in the header file. That doesn't seem to count though - I've never quite understood how it works and what it does.
mlampert wrote: ↑Wed Oct 02, 2019 11:09 pm
Interestingly I do include the precompiled header in the header file. That doesn't seem to count though - I've never quite understood how it works and what it does.
I think this is bad. I think the precompiled.h should never be included in a header, only in the .cpp file. I know wmayer has explained. I'll look for it.
sgrogan wrote: ↑Wed Oct 02, 2019 11:14 pm
I think this is bad. I think the precompiled.h should never be included in a header, only in the .cpp file. I know wmayer has explained. I'll look for it.
Your pull request has a conflict because it seems Werner already added the precompile header into the proper .cpp file. See git commit 0aa0f1c. But it still needs to be removed from the header file. I suggest you rebase to correct the conflict.
I fixed the build failure because of the missing export macro and pch in the source file. But I didn't realize the PCH inside the header and had no build failure because of this.
wmayer wrote: ↑Thu Oct 03, 2019 8:22 am
I fixed the build failure because of the missing export macro and pch in the source file. But I didn't realize the PCH inside the header and had no build failure because of this.
Thanks, I didn't know about the export maccro and have made a note of that, and the PCH guidelines.