Compilation very slow in Codelite 2.7 Windows Version

General questions regarding the usage of CodeLite
User avatar
aprilmot
CodeLite Enthusiast
Posts: 24
Joined: Sun Jul 04, 2010 1:20 pm
Genuine User: Yes
IDE Question: C++
Contact:

Compilation very slow in Codelite 2.7 Windows Version

Post by aprilmot »

Hello Iran,
I am using Codelite 2.7 in Windows XP. When I try to build some sample wxWidgets programs the compilation and linking takes more than 15seconds, whereas the same gets compiled in less than 3seconds on command prompt. I hope some of my settings are wrong.
Could you please suggest me a solution. Please let me know if you need any logs or information.

Thank you
Aprilmot
Long Live the Open Source and Humanity
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compilation very slow in Codelite 2.7 Windows Version

Post by eranif »

First, codelite is not a compiler - if it compiles slow, then the problem is elsewhere.

1) Post the build log
2) Are you using the exact same command to compile the sample from within (post here the command you use from command line and how codelite compiles it)
3) Try to run codelite's command from the command line and see the output

Eran
Make sure you have read the HOW TO POST thread
User avatar
aprilmot
CodeLite Enthusiast
Posts: 24
Joined: Sun Jul 04, 2010 1:20 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compilation very slow in Codelite 2.7 Windows Version

Post by aprilmot »

Hello Iran,
Thank you for your quick reply.

Please find the build log below.

Code: Select all

----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe"  -j 2 -f "MyFltk_wsp.mk""
----------Building project:[ HelloFltk - Debug ]----------
mingw32-make.exe[1]: Entering directory `G:/CodeLiteProjects/MyFltk'
g++ -c  "G:/CodeLiteProjects/MyFltk/HelloFltk.cpp" -g  -Wall -Wunused -Wno-format-y2k  -fno-exceptions -fno-strict-aliasing -mwindows -DWIN32 -DUSE_OPENGL32  -mno-cygwin -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  -o ./Debug/HelloFltk.o "-I." "-ID:/CPPDev/Libraries/fltk13" 
g++ -o ./Debug/HelloFltk ./Debug/HelloFltk.o  "-L." "-LD:/CPPDev/Libraries/fltk13/lib"   -O3 -Wall -Wunused -Wno-format-y2k  -fno-exceptions -fno-strict-aliasing -mwindows  -mno-cygwin -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc D:\CPPDev\Libraries\fltk13\lib\libfltk.a  -lole32 -luuid -lcomctl32 -lwsock32 
mingw32-make.exe[1]: Leaving directory `G:/CodeLiteProjects/MyFltk'
----------Build Ended----------
0 errors, 0 warnings
It took almost 5seconds for this build, mainly during linking.
Later I used the same command and builded on command line and found that it also took 5seconds.
I think the problem is related to the linker and not codelite. Sorry for the post.
Long Live the Open Source and Humanity
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compilation very slow in Codelite 2.7 Windows Version

Post by eranif »

You will notice that linking a 'Release' configuration is much faster than linking the 'Debug' configuration

Eran
Make sure you have read the HOW TO POST thread
Post Reply