Page 1 of 1
Compilation very slow in Codelite 2.7 Windows Version
Posted: Sun Oct 03, 2010 2:39 pm
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
Re: Compilation very slow in Codelite 2.7 Windows Version
Posted: Sun Oct 03, 2010 4:00 pm
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
Re: Compilation very slow in Codelite 2.7 Windows Version
Posted: Mon Oct 04, 2010 10:32 pm
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.
Re: Compilation very slow in Codelite 2.7 Windows Version
Posted: Mon Oct 04, 2010 10:34 pm
by eranif
You will notice that linking a 'Release' configuration is much faster than linking the 'Debug' configuration
Eran