stdafx.h

stdafx.h

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

stdafx.h

Post by imbaczek »

* removed include "stdafx.h" from gml.cpp (please don't do this, libraries should be able to compile without the other spring stuff)
AFAIK stdafx.h is a VS-ism for precompiled headers and compilation may fail without it #included, right?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: stdafx.h

Post by Auswaschbar »

imbaczek wrote:
* removed include "stdafx.h" from gml.cpp (please don't do this, libraries should be able to compile without the other spring stuff)
AFAIK stdafx.h is a VS-ism for precompiled headers and compilation may fail without it #included, right?
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).
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).
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: stdafx.h

Post by AF »

or you can just turn off precompiled headers for that file in the project.
Post Reply

Return to “Engine”