NO

Author Topic: Compiling a Windows program is very slow...  (Read 21286 times)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Compiling a Windows program is very slow...
« 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.
/Pelle

David144

  • Guest
Re: Compiling a Windows program is very slow...
« Reply #1 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.