c++codeblocksmingw32stdafx.h

About stdafx.h missing in my compiler(mingw32 on windows)


I just have a quick question. I've noticed that I don't have stdafx.h in my compiler(mingw32 on windows)

Am I supposed to have it? Or maybe is there a way to get around it?

Thanks for reading

EDIT: ok here is my current build log once I took out ALL of the includes of stdafx.h

http://pastebin.com/bczLr8xY


Solution

  • Read this wikipedia article. The paragraph I linked and the paragraph below it (mingw32 uses GCC).

    http://en.wikipedia.org/wiki/Precompiled_header#stdafx.h

    Since stdafx.h contains the most common headers I would remove every instance of #include stdafx.h and try to compile. If you get compile errors that a certain function is missing, add the appropriate header. Rinse and repeat.