Your includes are fine, it's not a problem with them.
Your includes are fine, it's not a problem with them.
is it better put them in implementaion (from designer)? what's the problem?thanks
Regards
sorry .Have anyone any hints on my slow linking speed? it goes slow when I change something in mainform.ui.h.....so I thought the problem is there....
Regards
The linking itself should have more or less constant time. The compilation time may vary. Are you sure it is the linking phase that is so time consuming?
no I'm not sure; I see if I do ; nmake clean; qmake; nmake; on nmake it seems stop on this:
then if I change mainform.ui.h and type nmake it seems stop on mainform.cppQt Code:
qmake_image_collection.cpp Generating Code...To copy to clipboard, switch view to plain text mode
Regards
If it really is mainform.cpp, maybe you can comment out (temporarily) certain parts of the code in that file to see what might be causing it (though making sure it's still compileable)? Divide and conquer, etc.
Was there something you changed recently that caused the slow linking? Added any libraries?
If it's always been slow, I'd just go ahead and blame Microsoft.
Software Engineer
Then it might be caused by a large number of includes or cycles in inclusions. Try using precompiled headers and don't double include items in .ui.h and designer implementation section. It's enough to include in one of those places (as .ui.h is included into generated implementation file).Originally Posted by mickey
thanks; I have some # at the begon of mainform.ui.h file; other are in implementation from designer (they aren't the same!). is this ok?
THen I subclassed mainform to myMainform: now in mymainform.cpp file I find same include that are in mainform.ui.h; can I avoid this? and how? can this a problem?thanks...
Regards
only possible recursive incude is "mywidget.h" put in mainform.ccp from compiler, and a ponter to mainForm* w, member of mywidget class (inside mywidget.h, but I need it there!!). anyway I use
in mywidget.h. Can it be? can I avoid?Qt Code:
#ifndef MYWIDGET_H #define MYWIDGET_H ....................... #endifTo copy to clipboard, switch view to plain text mode
Regards
First of all try to use precompiled headers and see how much it helps (it will help much, but if it help too much it means that you may have some include cycles or something like that).Originally Posted by mickey
sorry for question, but what are the precompiled headers? I think you're refer an .net option but wich? I choose generate automatically and don't change nothing in compiling..; others get errors...
Regards
I don't know if can useful to solve problem but after generation code......(where sometimes goes slow) after appear this:
Generating Code...
cl -c -nologo -Zm200 -W3 -w34100 -w34189 -MD -O1 -GX -DUNICODE -DWIN32 -DQT_THREAD_SUPPORT -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEB
UG -I".." -I"C:\code\glew\include" -I"C:\Qt\3.2.0Educational\include" -I"ui\\" -I"D:\XXX\prog\XEd" -I"D:\XXX\prog\XEd" -I"moc\\" -I"C:\Qt\3.2.0Educational\mkspecs\win32-msvc.net" -Foobj\ @C:\DOCUME~1\as\IMPOST~1\Temp\nm126.tmp
Last edited by jacek; 20th July 2006 at 12:39. Reason: changed [ code ] to [ quote ] to allow wrapping of long lines
Regards
ok I get out some include from mainform.ui.h; I change .pro and I inserte also stable.h line in include file (in the .pro I mean. right this??). I put #include "stable.h" in mainform.ui.h file
Is it all right? for the moment compilation time is the same...
Regards
Incidentally, what are the specs on your machine? How fast is it? How much memory does it have?
Software Engineer
Bookmarks