NO

Author Topic: Compiling speed  (Read 5124 times)

post from old forum

  • Guest
Compiling speed
« on: September 13, 2004, 09:30:41 PM »
Is there a way to improve compiling
speed ???
Tried to compile a program on a
P2 400 / 128 Mb but that it is not
nice to work with .
Looked a lot at the line :
Building ProjDefs. Tag.
Tried the free Borland compiler on
the same machine and it compiles a
lot faster !!

Peter (PK4BCX2)

post from old forum

  • Guest
Compiling speed
« Reply #1 on: September 13, 2004, 09:31:21 PM »
Go to menu and then select the source tab. There is an option for Browse Information there. Either untick that to disable all browse information, or change the radiobox to Functions Only (which builds a lot faster). Those options are what the building projdefs.tag stuff is.
I find that having Functions Only is nice and fast but having the full browse information makes the additional step quite slow, much the same problem you are having I guess.

Also adding #define WIN32_LEAN_AND_MEAN before you include windows.h increases compile speed.

shelded

post from old forum

  • Guest
Compiling speed
« Reply #2 on: September 13, 2004, 09:31:53 PM »
That should have been "go to menu tools options and then select". I put square braces around them before and the forum cut them out. Oops.

shelded

post from old forum

  • Guest
Compiling speed
« Reply #3 on: September 13, 2004, 09:32:21 PM »
Thanks I will try it !
But #define WIN32_LEAN_AND_MEAN gives me an
error :
Unresolved external symbol '_ShellExecute'
I don't know why .

Thanks ,
Peter

post from old forum

  • Guest
Compiling speed
« Reply #4 on: September 13, 2004, 09:32:48 PM »
WIN32_LEAN_AND_MEAN stops a whole load of mostly unused headers being included with the main windows.h. It also stops shellapi.h being included as it's not used most of the time. ShellExecute is declared in there.
Just add #include <shellapi.h> to your program and it will be okay.

shelded

post from old forum

  • Guest
Compiling speed
« Reply #5 on: September 13, 2004, 09:33:17 PM »
Thanks again !!!
It compiles now real fast .

Peter.