Pelles C forum

Pelles C => FAQ => Topic started by: Pelle on September 16, 2004, 06:27:39 am

Title: Compiling a Windows program is very slow...
Post by: Pelle on September 16, 2004, 06:27:39 am
You can use this sequence to increase the compilation speed:

Code: [Select]

#define WIN32_LEAN_AND_MEAN
#include <windows.h>


Using WIN32_LEAN_AND_MEAN will prevent several not so common #include files from being included by windows.h, which will increase the speed.
Title: Re: Compiling a Windows program is very slow...
Post by: David144 on December 22, 2014, 08:40:48 am
By default, the compiler only accepts standard C. To compile a Windows program, you need to enable Microsoft extensions in the compiler. In the IDE, go to Project Options and make sure Enable Microsoft Extensions is checked on the Compiler tab. From the command line, make sure you use the /Ze compiler option.