AFAIK stdafx.h is a VS-ism for precompiled headers and compilation may fail without it #included, right?* removed include "stdafx.h" from gml.cpp (please don't do this, libraries should be able to compile without the other spring stuff)
stdafx.h
Moderator: Moderators
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: stdafx.h
Afaik, it only gives warnings. But it adds about 20+ header files to gml.cpp (its was the only file included from the rest of spring).imbaczek wrote:AFAIK stdafx.h is a VS-ism for precompiled headers and compilation may fail without it #included, right?* removed include "stdafx.h" from gml.cpp (please don't do this, libraries should be able to compile without the other spring stuff)
In addition this caused errors in CMake, because it need STREFLOP_X87 defined (no library needs this except streflop itself, and several additonal include directories needs to be added).
Re: stdafx.h
or you can just turn off precompiled headers for that file in the project.