Skip to main content
gamedev.net
🔒 Locked

stdafx

Started by krakrazor Jan 22, 2004 at 8:29 PM 4 replies 300+ views
Original Post
krakrazor
krakrazor
Anyone ever use those things? and what the hell are they for? i always use an empty project so i don''t have to undefine those things!
Sneftel
Sneftel
It''s for use with precompiled headers (see MSDN for more info on those). Properly used, it can speed up compilation by an incredible amount; my game engine went from 5 minutes to compile, to 30 seconds.


"Sneftel is correct, if rather vulgar." --Flarelocke
Namethatnobodyelsetook
Namethatnobodyelsetook
Note that you can call the precompiled header anything you want. It doesn''t have to be stdafx.h... but in order to easily share code between projects it''s just simpler to leave it as stdafx.h.
Sneftel
Sneftel
quote:
Original post by Anonymous Poster
delete them you don''t need them unless you use microsoft''s compiler.

They wouldn''t show up in his non-empty projects if he weren''t.


"Sneftel is correct, if rather vulgar." --Flarelocke

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.